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

Side by Side Diff: ppapi/proxy/ppb_url_util_proxy.h

Issue 6676045: Implement a proxy for URL util. Some of the implementation that doesn't need ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_url_util_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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.
4
5 #ifndef PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_
6 #define PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_
7
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/proxy/interface_proxy.h"
10 #include "ppapi/proxy/serialized_var.h"
11
12 struct PPB_URLUtil_Dev;
13
14 namespace pp {
15 namespace proxy {
16
17 class PPB_URLUtil_Proxy : public InterfaceProxy {
18 public:
19 PPB_URLUtil_Proxy(Dispatcher* dispatcher, const void* target_interface);
20 virtual ~PPB_URLUtil_Proxy();
21
22 static const Info* GetInfo();
23
24 const PPB_URLUtil_Dev* ppb_url_util_target() const {
25 return static_cast<const PPB_URLUtil_Dev*>(target_interface());
26 }
27
28 // InterfaceProxy implementation.
29 virtual bool OnMessageReceived(const IPC::Message& msg);
30
31 private:
32 // Message handlers.
33 void OnMsgResolveRelativeToDocument(PP_Instance instance,
34 SerializedVarReceiveInput relative,
35 SerializedVarReturnValue result);
36 void OnMsgDocumentCanRequest(PP_Instance instance,
37 SerializedVarReceiveInput url,
38 PP_Bool* result);
39 void OnMsgDocumentCanAccessDocument(PP_Instance active,
40 PP_Instance target,
41 PP_Bool* result);
42 void OnMsgGetDocumentURL(PP_Instance instance,
43 SerializedVarReturnValue result);
44
45 DISALLOW_COPY_AND_ASSIGN(PPB_URLUtil_Proxy);
46 };
47
48 } // namespace proxy
49 } // namespace pp
50
51 #endif // PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_
52
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_url_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698