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

Side by Side Diff: ppapi/shared_impl/url_util_impl.h

Issue 7687005: Create ppapi_proxy.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/url_request_info_impl.h ('k') | ppapi/shared_impl/var.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PPAPI_SHARED_IMPL_URL_UTIL_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_URL_UTIL_IMPL_H_
6 #define PPAPI_SHARED_IMPL_URL_UTIL_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_URL_UTIL_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "googleurl/src/url_parse.h" 11 #include "googleurl/src/url_parse.h"
12 #include "ppapi/c/dev/ppb_url_util_dev.h" 12 #include "ppapi/c/dev/ppb_url_util_dev.h"
13 #include "ppapi/c/pp_module.h" 13 #include "ppapi/c/pp_module.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 #include "ppapi/shared_impl/ppapi_shared_export.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace ppapi { 19 namespace ppapi {
19 20
20 // Contains the implementation of PPB_URLUtil that is shared between the proxy 21 // Contains the implementation of PPB_URLUtil that is shared between the proxy
21 // and the renderer. 22 // and the renderer.
22 class URLUtilImpl { 23 class PPAPI_SHARED_EXPORT URLUtilImpl {
23 public: 24 public:
24 // PPB_URLUtil shared functions. 25 // PPB_URLUtil shared functions.
25 static PP_Var Canonicalize(PP_Module pp_module, 26 static PP_Var Canonicalize(PP_Module pp_module,
26 PP_Var url, 27 PP_Var url,
27 PP_URLComponents_Dev* components); 28 PP_URLComponents_Dev* components);
28 static PP_Var ResolveRelativeToURL(PP_Module pp_module, 29 static PP_Var ResolveRelativeToURL(PP_Module pp_module,
29 PP_Var base_url, 30 PP_Var base_url,
30 PP_Var relative, 31 PP_Var relative,
31 PP_URLComponents_Dev* components); 32 PP_URLComponents_Dev* components);
32 static PP_Bool IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b); 33 static PP_Bool IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b);
33 34
34 // Used for returning the given GURL from a PPAPI function, with an optional 35 // Used for returning the given GURL from a PPAPI function, with an optional
35 // out param indicating the components. 36 // out param indicating the components.
36 static PP_Var GenerateURLReturn(PP_Module pp_module, 37 static PP_Var GenerateURLReturn(PP_Module pp_module,
37 const GURL& url, 38 const GURL& url,
38 PP_URLComponents_Dev* components); 39 PP_URLComponents_Dev* components);
39 }; 40 };
40 41
41 } // namespace ppapi 42 } // namespace ppapi
42 43
43 #endif 44 #endif
OLDNEW
« no previous file with comments | « ppapi/shared_impl/url_request_info_impl.h ('k') | ppapi/shared_impl/var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698