OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_RENDERER_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_ |
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "third_party/WebKit/public/platform/WebString.h" | 26 #include "third_party/WebKit/public/platform/WebString.h" |
27 #include "third_party/WebKit/public/platform/WebVector.h" | 27 #include "third_party/WebKit/public/platform/WebVector.h" |
28 #include "v8/include/v8.h" | 28 #include "v8/include/v8.h" |
29 | 29 |
30 class ChromeRenderViewTest; | 30 class ChromeRenderViewTest; |
31 class GURL; | 31 class GURL; |
32 class ModuleSystem; | 32 class ModuleSystem; |
33 class URLPattern; | 33 class URLPattern; |
34 struct ExtensionMsg_ExternalConnectionInfo; | 34 struct ExtensionMsg_ExternalConnectionInfo; |
35 struct ExtensionMsg_Loaded_Params; | 35 struct ExtensionMsg_Loaded_Params; |
| 36 struct ExtensionMsg_TabConnectionInfo; |
36 struct ExtensionMsg_UpdatePermissions_Params; | 37 struct ExtensionMsg_UpdatePermissions_Params; |
37 | 38 |
38 namespace blink { | 39 namespace blink { |
39 class WebFrame; | 40 class WebFrame; |
40 class WebSecurityOrigin; | 41 class WebSecurityOrigin; |
41 } | 42 } |
42 | 43 |
43 namespace base { | 44 namespace base { |
44 class DictionaryValue; | |
45 class ListValue; | 45 class ListValue; |
46 } | 46 } |
47 | 47 |
48 namespace content { | 48 namespace content { |
49 class RenderThread; | 49 class RenderThread; |
50 } | 50 } |
51 | 51 |
52 namespace extensions { | 52 namespace extensions { |
53 class ContentWatcher; | 53 class ContentWatcher; |
54 class DispatcherDelegate; | 54 class DispatcherDelegate; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void OnRenderProcessShutdown() override; | 162 void OnRenderProcessShutdown() override; |
163 | 163 |
164 void OnActivateExtension(const std::string& extension_id); | 164 void OnActivateExtension(const std::string& extension_id); |
165 void OnCancelSuspend(const std::string& extension_id); | 165 void OnCancelSuspend(const std::string& extension_id); |
166 void OnClearTabSpecificPermissions( | 166 void OnClearTabSpecificPermissions( |
167 int tab_id, | 167 int tab_id, |
168 const std::vector<std::string>& extension_ids); | 168 const std::vector<std::string>& extension_ids); |
169 void OnDeliverMessage(int target_port_id, const Message& message); | 169 void OnDeliverMessage(int target_port_id, const Message& message); |
170 void OnDispatchOnConnect(int target_port_id, | 170 void OnDispatchOnConnect(int target_port_id, |
171 const std::string& channel_name, | 171 const std::string& channel_name, |
172 const base::DictionaryValue& source_tab, | 172 const ExtensionMsg_TabConnectionInfo& source, |
173 const ExtensionMsg_ExternalConnectionInfo& info, | 173 const ExtensionMsg_ExternalConnectionInfo& info, |
174 const std::string& tls_channel_id); | 174 const std::string& tls_channel_id); |
175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); | 175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); |
176 void OnLoaded( | 176 void OnLoaded( |
177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
178 void OnLoadedInternal(scoped_refptr<const Extension> extension); | 178 void OnLoadedInternal(scoped_refptr<const Extension> extension); |
179 void OnMessageInvoke(const std::string& extension_id, | 179 void OnMessageInvoke(const std::string& extension_id, |
180 const std::string& module_name, | 180 const std::string& module_name, |
181 const std::string& function_name, | 181 const std::string& function_name, |
182 const base::ListValue& args, | 182 const base::ListValue& args, |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 // Status of webrequest usage. | 315 // Status of webrequest usage. |
316 bool webrequest_used_; | 316 bool webrequest_used_; |
317 | 317 |
318 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 318 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
319 }; | 319 }; |
320 | 320 |
321 } // namespace extensions | 321 } // namespace extensions |
322 | 322 |
323 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 323 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |