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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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/ppb_testing_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PPB_URL_LOADER_PROXY_H_ 5 #ifndef PPAPI_PPB_URL_LOADER_PROXY_H_
6 #define PPAPI_PPB_URL_LOADER_PROXY_H_ 6 #define PPAPI_PPB_URL_LOADER_PROXY_H_
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 21 matching lines...) Expand all
32 // proxied info for the given browser-supplied URLLoader resource ID. 32 // proxied info for the given browser-supplied URLLoader resource ID.
33 static void TrackPluginResource(PP_Resource url_loader_resource); 33 static void TrackPluginResource(PP_Resource url_loader_resource);
34 34
35 const PPB_URLLoader* ppb_url_loader_target() const { 35 const PPB_URLLoader* ppb_url_loader_target() const {
36 return reinterpret_cast<const PPB_URLLoader*>(target_interface()); 36 return reinterpret_cast<const PPB_URLLoader*>(target_interface());
37 } 37 }
38 38
39 // InterfaceProxy implementation. 39 // InterfaceProxy implementation.
40 virtual const void* GetSourceInterface() const; 40 virtual const void* GetSourceInterface() const;
41 virtual InterfaceID GetInterfaceId() const; 41 virtual InterfaceID GetInterfaceId() const;
42 virtual void OnMessageReceived(const IPC::Message& msg); 42 virtual bool OnMessageReceived(const IPC::Message& msg);
43 43
44 private: 44 private:
45 // Data associated with callbacks for ReadResponseBody. 45 // Data associated with callbacks for ReadResponseBody.
46 struct ReadCallbackInfo; 46 struct ReadCallbackInfo;
47 47
48 // Plugin->renderer message handlers. 48 // Plugin->renderer message handlers.
49 void OnMsgCreate(PP_Instance instance, 49 void OnMsgCreate(PP_Instance instance,
50 PP_Resource* result); 50 PP_Resource* result);
51 void OnMsgOpen(PP_Resource loader, 51 void OnMsgOpen(PP_Resource loader,
52 PP_Resource request_info, 52 PP_Resource request_info,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const void* target_interface); 85 const void* target_interface);
86 virtual ~PPB_URLLoaderTrusted_Proxy(); 86 virtual ~PPB_URLLoaderTrusted_Proxy();
87 87
88 const PPB_URLLoaderTrusted* ppb_url_loader_trusted_target() const { 88 const PPB_URLLoaderTrusted* ppb_url_loader_trusted_target() const {
89 return reinterpret_cast<const PPB_URLLoaderTrusted*>(target_interface()); 89 return reinterpret_cast<const PPB_URLLoaderTrusted*>(target_interface());
90 } 90 }
91 91
92 // InterfaceProxy implementation. 92 // InterfaceProxy implementation.
93 virtual const void* GetSourceInterface() const; 93 virtual const void* GetSourceInterface() const;
94 virtual InterfaceID GetInterfaceId() const; 94 virtual InterfaceID GetInterfaceId() const;
95 virtual void OnMessageReceived(const IPC::Message& msg); 95 virtual bool OnMessageReceived(const IPC::Message& msg);
96 96
97 private: 97 private:
98 // Plugin->renderer message handlers. 98 // Plugin->renderer message handlers.
99 void OnMsgGrantUniversalAccess(PP_Resource loader); 99 void OnMsgGrantUniversalAccess(PP_Resource loader);
100 }; 100 };
101 101
102 } // namespace proxy 102 } // namespace proxy
103 } // namespace pp 103 } // namespace pp
104 104
105 #endif // PPAPI_PPB_URL_LOADER_PROXY_H_ 105 #endif // PPAPI_PPB_URL_LOADER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_testing_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698