OLD | NEW |
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 CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // RenderProcessObserver implementation: | 140 // RenderProcessObserver implementation: |
141 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 141 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
142 virtual void WebKitInitialized() OVERRIDE; | 142 virtual void WebKitInitialized() OVERRIDE; |
143 virtual void IdleNotification() OVERRIDE; | 143 virtual void IdleNotification() OVERRIDE; |
144 | 144 |
145 void OnSetChannel(int channel); | 145 void OnSetChannel(int channel); |
146 void OnMessageInvoke(const std::string& extension_id, | 146 void OnMessageInvoke(const std::string& extension_id, |
147 const std::string& function_name, | 147 const std::string& function_name, |
148 const base::ListValue& args, | 148 const base::ListValue& args, |
149 const GURL& event_url, | |
150 bool user_gesture); | 149 bool user_gesture); |
151 void OnDispatchOnConnect(int target_port_id, | 150 void OnDispatchOnConnect(int target_port_id, |
152 const std::string& channel_name, | 151 const std::string& channel_name, |
153 const base::DictionaryValue& source_tab, | 152 const base::DictionaryValue& source_tab, |
154 const ExtensionMsg_ExternalConnectionInfo& info); | 153 const ExtensionMsg_ExternalConnectionInfo& info); |
155 void OnDeliverMessage(int target_port_id, const std::string& message); | 154 void OnDeliverMessage(int target_port_id, const std::string& message); |
156 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); | 155 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); |
157 void OnSetFunctionNames(const std::vector<std::string>& names); | 156 void OnSetFunctionNames(const std::vector<std::string>& names); |
158 void OnLoaded( | 157 void OnLoaded( |
159 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 158 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 275 |
277 // Sends API requests to the extension host. | 276 // Sends API requests to the extension host. |
278 scoped_ptr<RequestSender> request_sender_; | 277 scoped_ptr<RequestSender> request_sender_; |
279 | 278 |
280 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 279 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
281 }; | 280 }; |
282 | 281 |
283 } // namespace extensions | 282 } // namespace extensions |
284 | 283 |
285 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 284 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
OLD | NEW |