| 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> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "v8/include/v8.h" | 35 #include "v8/include/v8.h" |
| 36 | 36 |
| 37 class ChromeRenderViewTest; | 37 class ChromeRenderViewTest; |
| 38 class GURL; | 38 class GURL; |
| 39 class ModuleSystem; | 39 class ModuleSystem; |
| 40 class URLPattern; | 40 class URLPattern; |
| 41 struct ExtensionMsg_ExternalConnectionInfo; | 41 struct ExtensionMsg_ExternalConnectionInfo; |
| 42 struct ExtensionMsg_Loaded_Params; | 42 struct ExtensionMsg_Loaded_Params; |
| 43 struct ExtensionMsg_TabConnectionInfo; | 43 struct ExtensionMsg_TabConnectionInfo; |
| 44 struct ExtensionMsg_UpdatePermissions_Params; | 44 struct ExtensionMsg_UpdatePermissions_Params; |
| 45 struct ExtensionMsg_UpdatePolicy_Params; |
| 45 | 46 |
| 46 namespace blink { | 47 namespace blink { |
| 47 class WebFrame; | 48 class WebFrame; |
| 48 class WebLocalFrame; | 49 class WebLocalFrame; |
| 49 class WebSecurityOrigin; | 50 class WebSecurityOrigin; |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace base { | 53 namespace base { |
| 53 class ListValue; | 54 class ListValue; |
| 54 } | 55 } |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 void OnSetScriptingWhitelist( | 185 void OnSetScriptingWhitelist( |
| 185 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 186 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
| 186 void OnSetSystemFont(const std::string& font_family, | 187 void OnSetSystemFont(const std::string& font_family, |
| 187 const std::string& font_size); | 188 const std::string& font_size); |
| 188 void OnSetWebViewPartitionID(const std::string& partition_id); | 189 void OnSetWebViewPartitionID(const std::string& partition_id); |
| 189 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); | 190 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); |
| 190 void OnSuspend(const std::string& extension_id); | 191 void OnSuspend(const std::string& extension_id); |
| 191 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 192 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
| 192 void OnUnloaded(const std::string& id); | 193 void OnUnloaded(const std::string& id); |
| 193 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 194 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
| 195 void OnUpdatePolicy(const ExtensionMsg_UpdatePolicy_Params& params); |
| 194 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 196 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
| 195 const std::string& extension_id, | 197 const std::string& extension_id, |
| 196 const URLPatternSet& new_hosts, | 198 const URLPatternSet& new_hosts, |
| 197 bool update_origin_whitelist, | 199 bool update_origin_whitelist, |
| 198 int tab_id); | 200 int tab_id); |
| 199 void OnClearTabSpecificPermissions( | 201 void OnClearTabSpecificPermissions( |
| 200 const std::vector<std::string>& extension_ids, | 202 const std::vector<std::string>& extension_ids, |
| 201 bool update_origin_whitelist, | 203 bool update_origin_whitelist, |
| 202 int tab_id); | 204 int tab_id); |
| 203 | 205 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // if this renderer is a WebView guest render process. Otherwise, this will be | 317 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 316 // empty. | 318 // empty. |
| 317 std::string webview_partition_id_; | 319 std::string webview_partition_id_; |
| 318 | 320 |
| 319 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 321 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 320 }; | 322 }; |
| 321 | 323 |
| 322 } // namespace extensions | 324 } // namespace extensions |
| 323 | 325 |
| 324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 326 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |