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

Side by Side Diff: ppapi/proxy/ppb_url_response_info_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 10 years 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_url_request_info_proxy.cc ('k') | ppapi/proxy/ppb_url_response_info_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_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_
6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ 6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_module.h" 9 #include "ppapi/c/pp_module.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 17 matching lines...) Expand all
28 // a response info object in the plugin. 28 // a response info object in the plugin.
29 static void TrackPluginResource(PP_Resource response_resource); 29 static void TrackPluginResource(PP_Resource response_resource);
30 30
31 const PPB_URLResponseInfo* ppb_url_response_info_target() const { 31 const PPB_URLResponseInfo* ppb_url_response_info_target() const {
32 return static_cast<const PPB_URLResponseInfo*>(target_interface()); 32 return static_cast<const PPB_URLResponseInfo*>(target_interface());
33 } 33 }
34 34
35 // InterfaceProxy implementation. 35 // InterfaceProxy implementation.
36 virtual const void* GetSourceInterface() const; 36 virtual const void* GetSourceInterface() const;
37 virtual InterfaceID GetInterfaceId() const; 37 virtual InterfaceID GetInterfaceId() const;
38 virtual void OnMessageReceived(const IPC::Message& msg); 38 virtual bool OnMessageReceived(const IPC::Message& msg);
39 39
40 private: 40 private:
41 // Message handlers. 41 // Message handlers.
42 void OnMsgGetProperty(PP_Resource response, 42 void OnMsgGetProperty(PP_Resource response,
43 int32_t property, 43 int32_t property,
44 SerializedVarReturnValue result); 44 SerializedVarReturnValue result);
45 void OnMsgGetBodyAsFileRef(PP_Resource response, 45 void OnMsgGetBodyAsFileRef(PP_Resource response,
46 PP_Resource* file_ref_result); 46 PP_Resource* file_ref_result);
47 47
48 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); 48 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy);
49 }; 49 };
50 50
51 } // namespace proxy 51 } // namespace proxy
52 } // namespace pp 52 } // namespace pp
53 53
54 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ 54 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | ppapi/proxy/ppb_url_response_info_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698