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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_
6 #define CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
10 #include "ppapi/c/pp_instance.h"
13 struct URLRequestInfoData
;
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
25 // partially initialized). Any upload files with only resource IDs (no file ref
26 // pointers) will be populated by this function on success.
27 CONTENT_EXPORT
bool CreateWebURLRequest(PP_Instance instance
,
28 ppapi::URLRequestInfoData
* data
,
29 blink::WebFrame
* frame
,
30 blink::WebURLRequest
* dest
);
32 // Returns true if universal access is required to use the given request.
33 CONTENT_EXPORT
bool URLRequestRequiresUniversalAccess(
34 const ppapi::URLRequestInfoData
& data
);
36 } // namespace content
38 #endif // CONTENT_RENDERER_PEPPER_URL_REQUEST_INFO_UTIL_H_