14ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
24ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
34ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch// found in the LICENSE file.
44ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
54ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch#ifndef CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
64ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch#define CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
74ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
84ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch#include <string>
94ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
10cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#include "content/public/common/resource_response_info.h"
114ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch#include "url/gurl.h"
124ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
134ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdochnamespace content {
144ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
154ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch// See the SyncLoad method. (The name of this struct is not
164ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch// suffixed with "Info" because it also contains the response data.)
17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)struct SyncLoadResponse : ResourceResponseInfo {
184ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  SyncLoadResponse();
194ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  ~SyncLoadResponse();
204ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
214ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  // The response error code.
224ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  int error_code;
234ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
244ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  // The final URL of the response.  This may differ from the request URL in
254ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  // the case of a server redirect.
264ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  GURL url;
274ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
284ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  // The response data.
294ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch  std::string data;
304ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch};
314ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
324ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch}  // namespace content
334ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch
344ad1aa43a48567659193a298fad74f55e00b3dd9Ben Murdoch#endif  // CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
35