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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/scoped_observer.h" | 19 #include "base/scoped_observer.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "components/version_info/version_info.h" | 21 #include "components/version_info/version_info.h" |
22 #include "content/public/renderer/render_thread_observer.h" | 22 #include "content/public/renderer/render_thread_observer.h" |
23 #include "extensions/common/event_filter.h" | 23 #include "extensions/common/event_filter.h" |
24 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
25 #include "extensions/common/extensions_client.h" | 25 #include "extensions/common/extensions_client.h" |
26 #include "extensions/common/features/feature.h" | 26 #include "extensions/common/features/feature.h" |
| 27 #include "extensions/common/features/feature_session_type.h" |
27 #include "extensions/renderer/resource_bundle_source_map.h" | 28 #include "extensions/renderer/resource_bundle_source_map.h" |
28 #include "extensions/renderer/script_context.h" | 29 #include "extensions/renderer/script_context.h" |
29 #include "extensions/renderer/script_context_set.h" | 30 #include "extensions/renderer/script_context_set.h" |
30 #include "extensions/renderer/user_script_set_manager.h" | 31 #include "extensions/renderer/user_script_set_manager.h" |
31 #include "extensions/renderer/v8_schema_registry.h" | 32 #include "extensions/renderer/v8_schema_registry.h" |
32 #include "third_party/WebKit/public/platform/WebString.h" | 33 #include "third_party/WebKit/public/platform/WebString.h" |
33 #include "third_party/WebKit/public/platform/WebVector.h" | 34 #include "third_party/WebKit/public/platform/WebVector.h" |
34 #include "v8/include/v8.h" | 35 #include "v8/include/v8.h" |
35 | 36 |
36 class ChromeRenderViewTest; | 37 class ChromeRenderViewTest; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const ExtensionMsg_ExternalConnectionInfo& info, | 174 const ExtensionMsg_ExternalConnectionInfo& info, |
174 const std::string& tls_channel_id); | 175 const std::string& tls_channel_id); |
175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); | 176 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); |
176 void OnLoaded( | 177 void OnLoaded( |
177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 178 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
178 void OnMessageInvoke(const std::string& extension_id, | 179 void OnMessageInvoke(const std::string& extension_id, |
179 const std::string& module_name, | 180 const std::string& module_name, |
180 const std::string& function_name, | 181 const std::string& function_name, |
181 const base::ListValue& args, | 182 const base::ListValue& args, |
182 bool user_gesture); | 183 bool user_gesture); |
183 void OnSetChannel(version_info::Channel channel); | 184 void OnSetSessionInfo(version_info::Channel channel, |
| 185 FeatureSessionType session_type); |
184 void OnSetScriptingWhitelist( | 186 void OnSetScriptingWhitelist( |
185 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 187 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
186 void OnSetSystemFont(const std::string& font_family, | 188 void OnSetSystemFont(const std::string& font_family, |
187 const std::string& font_size); | 189 const std::string& font_size); |
188 void OnSetWebViewPartitionID(const std::string& partition_id); | 190 void OnSetWebViewPartitionID(const std::string& partition_id); |
189 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); | 191 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); |
190 void OnSuspend(const std::string& extension_id); | 192 void OnSuspend(const std::string& extension_id); |
191 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 193 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
192 void OnUnloaded(const std::string& id); | 194 void OnUnloaded(const std::string& id); |
193 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 195 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // if this renderer is a WebView guest render process. Otherwise, this will be | 320 // if this renderer is a WebView guest render process. Otherwise, this will be |
319 // empty. | 321 // empty. |
320 std::string webview_partition_id_; | 322 std::string webview_partition_id_; |
321 | 323 |
322 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 324 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
323 }; | 325 }; |
324 | 326 |
325 } // namespace extensions | 327 } // namespace extensions |
326 | 328 |
327 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 329 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |