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> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <set> | 11 #include <set> |
10 #include <string> | 12 #include <string> |
11 #include <utility> | 13 #include <utility> |
12 #include <vector> | 14 #include <vector> |
13 | 15 |
14 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
16 #include "base/scoped_observer.h" | 19 #include "base/scoped_observer.h" |
17 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
18 #include "content/public/renderer/render_process_observer.h" | 21 #include "content/public/renderer/render_process_observer.h" |
19 #include "extensions/common/event_filter.h" | 22 #include "extensions/common/event_filter.h" |
20 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
21 #include "extensions/common/extensions_client.h" | 24 #include "extensions/common/extensions_client.h" |
22 #include "extensions/common/features/feature.h" | 25 #include "extensions/common/features/feature.h" |
23 #include "extensions/renderer/resource_bundle_source_map.h" | 26 #include "extensions/renderer/resource_bundle_source_map.h" |
24 #include "extensions/renderer/script_context.h" | 27 #include "extensions/renderer/script_context.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 const std::string& module_name, | 168 const std::string& module_name, |
166 const std::string& function_name, | 169 const std::string& function_name, |
167 const base::ListValue& args, | 170 const base::ListValue& args, |
168 bool user_gesture); | 171 bool user_gesture); |
169 void OnSetChannel(int channel); | 172 void OnSetChannel(int channel); |
170 void OnSetScriptingWhitelist( | 173 void OnSetScriptingWhitelist( |
171 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 174 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
172 void OnSetSystemFont(const std::string& font_family, | 175 void OnSetSystemFont(const std::string& font_family, |
173 const std::string& font_size); | 176 const std::string& font_size); |
174 void OnSetWebViewPartitionID(const std::string& partition_id); | 177 void OnSetWebViewPartitionID(const std::string& partition_id); |
175 void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id); | 178 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); |
176 void OnSuspend(const std::string& extension_id); | 179 void OnSuspend(const std::string& extension_id); |
177 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 180 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
178 void OnUnloaded(const std::string& id); | 181 void OnUnloaded(const std::string& id); |
179 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 182 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
180 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 183 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
181 const std::string& extension_id, | 184 const std::string& extension_id, |
182 const URLPatternSet& new_hosts, | 185 const URLPatternSet& new_hosts, |
183 bool update_origin_whitelist, | 186 bool update_origin_whitelist, |
184 int tab_id); | 187 int tab_id); |
185 void OnClearTabSpecificPermissions( | 188 void OnClearTabSpecificPermissions( |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // if this renderer is a WebView guest render process. Otherwise, this will be | 307 // if this renderer is a WebView guest render process. Otherwise, this will be |
305 // empty. | 308 // empty. |
306 std::string webview_partition_id_; | 309 std::string webview_partition_id_; |
307 | 310 |
308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 311 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
309 }; | 312 }; |
310 | 313 |
311 } // namespace extensions | 314 } // namespace extensions |
312 | 315 |
313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 316 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |