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

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
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 SerializedVarReturnValue;
yzshen1 2011/03/16 21:19:23 We don't need this because serialized_var.h has be
18
19 class PPB_URLUtil_Proxy : public InterfaceProxy {
20 public:
21 PPB_URLUtil_Proxy(Dispatcher* dispatcher, const void* target_interface);
22 virtual ~PPB_URLUtil_Proxy();
23
24 static const Info* GetInfo();
25
26 const PPB_URLUtil_Dev* ppb_url_util_target() const {
27 return static_cast<const PPB_URLUtil_Dev*>(target_interface());
28 }
29
30 // InterfaceProxy implementation.
31 virtual bool OnMessageReceived(const IPC::Message& msg);
32
33 private:
34 // Message handlers.
35 void OnMsgResolveRelativeToDocument(PP_Instance instance,
36 SerializedVarReceiveInput relative,
37 SerializedVarReturnValue result);
38 void OnMsgDocumentCanRequest(PP_Instance instance,
39 SerializedVarReceiveInput url,
40 PP_Bool* result);
41 void OnMsgDocumentCanAccessDocument(PP_Instance active,
42 PP_Instance target,
43 PP_Bool* result);
44 void OnMsgGetDocumentURL(PP_Instance instance,
45 SerializedVarReturnValue result);
46
47 DISALLOW_COPY_AND_ASSIGN(PPB_URLUtil_Proxy);
48 };
49
50 } // namespace proxy
51 } // namespace pp
52
53 #endif // PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_
54
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698