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

Unified Diff: webkit/plugins/ppapi/url_response_info_util.h

Issue 10993031: Refactor the URLResponseInfo to use new design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « webkit/plugins/ppapi/ppb_url_response_info_impl.cc ('k') | webkit/plugins/ppapi/url_response_info_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/url_response_info_util.h
diff --git a/webkit/plugins/ppapi/url_response_info_util.h b/webkit/plugins/ppapi/url_response_info_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff805db2ebb90ad44b2cc57acdcb8db402ced5a5
--- /dev/null
+++ b/webkit/plugins/ppapi/url_response_info_util.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_PPB_URL_RESPONSE_INFO_UTIL_H_
+#define WEBKIT_PLUGINS_PPAPI_PPB_URL_RESPONSE_INFO_UTIL_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/shared_impl/url_response_info_data.h"
+
+namespace WebKit {
+class WebURLResponse;
+}
+
+namespace webkit {
+namespace ppapi {
+
+// The returned object will have one plugin reference to the "body_as_file_ref"
+// if it's non-null. It's expected that the result of this function will be
+// passed to the plugin.
+::ppapi::URLResponseInfoData DataFromWebURLResponse(
+ PP_Instance pp_instance,
+ const WebKit::WebURLResponse& response);
+
+} // namespace ppapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_RESPONSE_INFO_UTIL_H_
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_response_info_impl.cc ('k') | webkit/plugins/ppapi/url_response_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698