| 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 struct ExtensionMsg_DispatchEvent_Params; | 40 struct ExtensionMsg_DispatchEvent_Params; |
| 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_UpdateDefaultPolicyHostRestrictions_Params; | |
| 46 | 45 |
| 47 namespace blink { | 46 namespace blink { |
| 48 class WebLocalFrame; | 47 class WebLocalFrame; |
| 49 } | 48 } |
| 50 | 49 |
| 51 namespace base { | 50 namespace base { |
| 52 class ListValue; | 51 class ListValue; |
| 53 } | 52 } |
| 54 | 53 |
| 55 namespace extensions { | 54 namespace extensions { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void OnSetScriptingWhitelist( | 176 void OnSetScriptingWhitelist( |
| 178 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 177 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
| 179 void OnSetSystemFont(const std::string& font_family, | 178 void OnSetSystemFont(const std::string& font_family, |
| 180 const std::string& font_size); | 179 const std::string& font_size); |
| 181 void OnSetWebViewPartitionID(const std::string& partition_id); | 180 void OnSetWebViewPartitionID(const std::string& partition_id); |
| 182 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); | 181 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); |
| 183 void OnSuspend(const std::string& extension_id); | 182 void OnSuspend(const std::string& extension_id); |
| 184 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 183 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
| 185 void OnUnloaded(const std::string& id); | 184 void OnUnloaded(const std::string& id); |
| 186 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 185 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
| 187 void OnUpdateDefaultPolicyHostRestrictions( | |
| 188 const ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params& params); | |
| 189 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 186 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
| 190 const std::string& extension_id, | 187 const std::string& extension_id, |
| 191 const URLPatternSet& new_hosts, | 188 const URLPatternSet& new_hosts, |
| 192 bool update_origin_whitelist, | 189 bool update_origin_whitelist, |
| 193 int tab_id); | 190 int tab_id); |
| 194 void OnClearTabSpecificPermissions( | 191 void OnClearTabSpecificPermissions( |
| 195 const std::vector<std::string>& extension_ids, | 192 const std::vector<std::string>& extension_ids, |
| 196 bool update_origin_whitelist, | 193 bool update_origin_whitelist, |
| 197 int tab_id); | 194 int tab_id); |
| 198 | 195 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // if this renderer is a WebView guest render process. Otherwise, this will be | 289 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 293 // empty. | 290 // empty. |
| 294 std::string webview_partition_id_; | 291 std::string webview_partition_id_; |
| 295 | 292 |
| 296 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 293 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 297 }; | 294 }; |
| 298 | 295 |
| 299 } // namespace extensions | 296 } // namespace extensions |
| 300 | 297 |
| 301 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 298 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |