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

Side by Side Diff: content/ppapi_plugin/broker_process_dispatcher.h

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « content/plugin/webplugin_delegate_stub.h ('k') | content/test/mock_render_thread.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ppapi/c/ppp.h" 10 #include "ppapi/c/ppp.h"
11 #include "ppapi/proxy/broker_dispatcher.h" 11 #include "ppapi/proxy/broker_dispatcher.h"
12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
13 13
14 // Wrapper around a BrokerDispatcher that provides the necessary integration 14 // Wrapper around a BrokerDispatcher that provides the necessary integration
15 // for plugin process management. This class is to avoid direct dependencies 15 // for plugin process management. This class is to avoid direct dependencies
16 // from the PPAPI proxy on the Chrome multiprocess infrastructure. 16 // from the PPAPI proxy on the Chrome multiprocess infrastructure.
17 class BrokerProcessDispatcher 17 class BrokerProcessDispatcher
18 : public ppapi::proxy::BrokerSideDispatcher, 18 : public ppapi::proxy::BrokerSideDispatcher,
19 public base::SupportsWeakPtr<BrokerProcessDispatcher> { 19 public base::SupportsWeakPtr<BrokerProcessDispatcher> {
20 public: 20 public:
21 BrokerProcessDispatcher(PP_GetInterface_Func get_plugin_interface, 21 BrokerProcessDispatcher(PP_GetInterface_Func get_plugin_interface,
22 PP_ConnectInstance_Func connect_instance); 22 PP_ConnectInstance_Func connect_instance);
23 virtual ~BrokerProcessDispatcher(); 23 virtual ~BrokerProcessDispatcher();
24 24
25 // IPC::Channel::Listener overrides. 25 // IPC::Listener overrides.
26 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 26 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
27 27
28 void OnGetPermissionSettingsCompleted( 28 void OnGetPermissionSettingsCompleted(
29 uint32 request_id, 29 uint32 request_id,
30 bool success, 30 bool success,
31 PP_Flash_BrowserOperations_Permission default_permission, 31 PP_Flash_BrowserOperations_Permission default_permission,
32 const ppapi::FlashSiteSettings& sites); 32 const ppapi::FlashSiteSettings& sites);
33 33
34 private: 34 private:
35 void OnMsgClearSiteData(const FilePath& plugin_data_path, 35 void OnMsgClearSiteData(const FilePath& plugin_data_path,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 PP_GetInterface_Func get_plugin_interface_; 71 PP_GetInterface_Func get_plugin_interface_;
72 72
73 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_; 73 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_;
74 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_; 74 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher); 76 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher);
77 }; 77 };
78 78
79 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 79 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_delegate_stub.h ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698