Chromium Code Reviews| 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_UpdatePolicyHostRestrictions_Params; | |
| 46 struct ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params; | |
| 45 | 47 |
| 46 namespace blink { | 48 namespace blink { |
| 47 class WebFrame; | 49 class WebFrame; |
| 48 class WebLocalFrame; | 50 class WebLocalFrame; |
| 49 class WebSecurityOrigin; | 51 class WebSecurityOrigin; |
| 50 } | 52 } |
| 51 | 53 |
| 52 namespace base { | 54 namespace base { |
| 53 class ListValue; | 55 class ListValue; |
| 54 } | 56 } |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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); |
| 196 void OnUpdatePolicyHostRestrictions( | |
|
Devlin
2017/03/29 21:36:50
This method doesn't appear to exist?
nrpeter
2017/03/30 00:06:06
Done.
Forgot to remove after we folded this into
| |
| 197 const ExtensionMsg_UpdatePolicyHostRestrictions_Params& params); | |
| 198 void OnUpdateDefaultPolicyHostRestrictions( | |
| 199 const ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params& params); | |
| 194 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 200 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
| 195 const std::string& extension_id, | 201 const std::string& extension_id, |
| 196 const URLPatternSet& new_hosts, | 202 const URLPatternSet& new_hosts, |
| 197 bool update_origin_whitelist, | 203 bool update_origin_whitelist, |
| 198 int tab_id); | 204 int tab_id); |
| 199 void OnClearTabSpecificPermissions( | 205 void OnClearTabSpecificPermissions( |
| 200 const std::vector<std::string>& extension_ids, | 206 const std::vector<std::string>& extension_ids, |
| 201 bool update_origin_whitelist, | 207 bool update_origin_whitelist, |
| 202 int tab_id); | 208 int tab_id); |
| 203 | 209 |
| (...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 | 321 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 316 // empty. | 322 // empty. |
| 317 std::string webview_partition_id_; | 323 std::string webview_partition_id_; |
| 318 | 324 |
| 319 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 325 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 320 }; | 326 }; |
| 321 | 327 |
| 322 } // namespace extensions | 328 } // namespace extensions |
| 323 | 329 |
| 324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 330 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |