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

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

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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 | « webkit/plugins/ppapi/url_request_info_unittest.cc ('k') | webkit/plugins/ppapi/url_request_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_request_info_util.h
diff --git a/webkit/plugins/ppapi/url_request_info_util.h b/webkit/plugins/ppapi/url_request_info_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c5e110fa81b65b5c3e2aa096726cebb1e0aac85
--- /dev/null
+++ b/webkit/plugins/ppapi/url_request_info_util.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 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_URL_REQUEST_INFO_UTIL_H_
+#define WEBKIT_PLUGINS_PPAPI_URL_REQUEST_INFO_UTIL_H_
+
+#include "base/memory/ref_counted.h"
+#include "webkit/plugins/webkit_plugins_export.h"
+
+namespace ppapi {
+struct URLRequestInfoData;
+}
+
+namespace WebKit {
+class WebFrame;
+class WebURLRequest;
+}
+
+namespace webkit {
+namespace ppapi {
+
+// Creates the WebKit URL request from the current request info. Returns true
+// on success, false if the request is invalid (in which case *dest may be
+// partially initialized). Any upload files with only resource IDs (no file ref
+// pointers) will be populated by this function on success.
+WEBKIT_PLUGINS_EXPORT bool CreateWebURLRequest(
+ ::ppapi::URLRequestInfoData* data,
+ WebKit::WebFrame* frame,
+ WebKit::WebURLRequest* dest);
+
+// Returns true if universal access is required to use the given request.
+WEBKIT_PLUGINS_EXPORT bool URLRequestRequiresUniversalAccess(
+ const ::ppapi::URLRequestInfoData& data);
+
+} // namespace ppapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_UTIL_H_
« no previous file with comments | « webkit/plugins/ppapi/url_request_info_unittest.cc ('k') | webkit/plugins/ppapi/url_request_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698