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

Side by Side Diff: content/renderer/pepper/url_request_info_util.h

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_
6 #define CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_ 6 #define CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 struct URLRequestInfoData; 13 struct URLRequestInfoData;
14 } 14 }
15 15
16 namespace blink { 16 namespace blink {
17 class WebFrame; 17 class WebLocalFrame;
18 class WebURLRequest; 18 class WebURLRequest;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 // Creates the WebKit URL request from the current request info. Returns true 23 // Creates the WebKit URL request from the current request info. Returns true
24 // on success, false if the request is invalid (in which case *dest may be 24 // on success, false if the request is invalid (in which case *dest may be
25 // partially initialized). Any upload files with only resource IDs (no file ref 25 // partially initialized). Any upload files with only resource IDs (no file ref
26 // pointers) will be populated by this function on success. 26 // pointers) will be populated by this function on success.
27 CONTENT_EXPORT bool CreateWebURLRequest(PP_Instance instance, 27 CONTENT_EXPORT bool CreateWebURLRequest(PP_Instance instance,
28 ppapi::URLRequestInfoData* data, 28 ppapi::URLRequestInfoData* data,
29 blink::WebFrame* frame, 29 blink::WebLocalFrame* frame,
30 blink::WebURLRequest* dest); 30 blink::WebURLRequest* dest);
31 31
32 // Returns true if universal access is required to use the given request. 32 // Returns true if universal access is required to use the given request.
33 CONTENT_EXPORT bool URLRequestRequiresUniversalAccess( 33 CONTENT_EXPORT bool URLRequestRequiresUniversalAccess(
34 const ppapi::URLRequestInfoData& data); 34 const ppapi::URLRequestInfoData& data);
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_ 38 #endif // CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/url_request_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698