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

Side by Side Diff: ppapi/proxy/ppb_audio_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_audio_config_proxy.cc ('k') | ppapi/proxy/ppb_audio_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_AUDIO_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_AUDIO_PROXY_H_
6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_ 6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
(...skipping 15 matching lines...) Expand all
26 PPB_Audio_Proxy(Dispatcher* dispatcher, const void* target_interface); 26 PPB_Audio_Proxy(Dispatcher* dispatcher, const void* target_interface);
27 virtual ~PPB_Audio_Proxy(); 27 virtual ~PPB_Audio_Proxy();
28 28
29 const PPB_Audio_Dev* ppb_audio_target() const { 29 const PPB_Audio_Dev* ppb_audio_target() const {
30 return static_cast<const PPB_Audio_Dev*>(target_interface()); 30 return static_cast<const PPB_Audio_Dev*>(target_interface());
31 } 31 }
32 32
33 // InterfaceProxy implementation. 33 // InterfaceProxy implementation.
34 virtual const void* GetSourceInterface() const; 34 virtual const void* GetSourceInterface() const;
35 virtual InterfaceID GetInterfaceId() const; 35 virtual InterfaceID GetInterfaceId() const;
36 virtual void OnMessageReceived(const IPC::Message& msg); 36 virtual bool OnMessageReceived(const IPC::Message& msg);
37 37
38 private: 38 private:
39 // Plugin->renderer message handlers. 39 // Plugin->renderer message handlers.
40 void OnMsgCreate(PP_Instance instance_id, 40 void OnMsgCreate(PP_Instance instance_id,
41 PP_Resource config_id, 41 PP_Resource config_id,
42 PP_Resource* result); 42 PP_Resource* result);
43 void OnMsgStartOrStop(PP_Resource audio_id, bool play); 43 void OnMsgStartOrStop(PP_Resource audio_id, bool play);
44 44
45 // Renderer->plugin message handlers. 45 // Renderer->plugin message handlers.
46 void OnMsgNotifyAudioStreamCreated( 46 void OnMsgNotifyAudioStreamCreated(
(...skipping 22 matching lines...) Expand all
69 CompletionCallbackFactory<PPB_Audio_Proxy, 69 CompletionCallbackFactory<PPB_Audio_Proxy,
70 ProxyNonThreadSafeRefCount> callback_factory_; 70 ProxyNonThreadSafeRefCount> callback_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy); 72 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy);
73 }; 73 };
74 74
75 } // namespace proxy 75 } // namespace proxy
76 } // namespace pp 76 } // namespace pp
77 77
78 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_ 78 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_config_proxy.cc ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698