Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Unified Diff: content/child/sync_load_response.h

Issue 216913002: Extract SyncLoadResponse struct from ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/sync_load_response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/sync_load_response.h
diff --git a/content/child/sync_load_response.h b/content/child/sync_load_response.h
new file mode 100644
index 0000000000000000000000000000000000000000..d19985f3757a6fb82cff517e32fae848dd3109c6
--- /dev/null
+++ b/content/child/sync_load_response.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
+#define CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
+
+#include <string>
+
+#include "url/gurl.h"
+#include "webkit/common/resource_response_info.h"
+
+namespace content {
+
+// See the SyncLoad method. (The name of this struct is not
+// suffixed with "Info" because it also contains the response data.)
+struct SyncLoadResponse : webkit_glue::ResourceResponseInfo {
+ SyncLoadResponse();
+ ~SyncLoadResponse();
+
+ // The response error code.
+ int error_code;
+
+ // The final URL of the response. This may differ from the request URL in
+ // the case of a server redirect.
+ GURL url;
+
+ // The response data.
+ std::string data;
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/sync_load_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698