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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 const ScriptContextSet& script_context_set() const { | 76 const ScriptContextSet& script_context_set() const { |
| 77 return *script_context_set_; | 77 return *script_context_set_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 V8SchemaRegistry* v8_schema_registry() { return v8_schema_registry_.get(); } | 80 V8SchemaRegistry* v8_schema_registry() { return v8_schema_registry_.get(); } |
| 81 | 81 |
| 82 ContentWatcher* content_watcher() { return content_watcher_.get(); } | 82 ContentWatcher* content_watcher() { return content_watcher_.get(); } |
| 83 | 83 |
| 84 RequestSender* request_sender() { return request_sender_.get(); } | 84 RequestSender* request_sender() { return request_sender_.get(); } |
| 85 | 85 |
| 86 std::string webview_partition_id() { return webview_partition_id_; } | |
|
not at google - send to devlin
2015/09/03 20:17:54
return a const std::string&
paulmeyer
2015/09/08 18:51:36
Done.
| |
| 87 | |
| 86 void OnRenderFrameCreated(content::RenderFrame* render_frame); | 88 void OnRenderFrameCreated(content::RenderFrame* render_frame); |
| 87 | 89 |
| 88 bool IsExtensionActive(const std::string& extension_id) const; | 90 bool IsExtensionActive(const std::string& extension_id) const; |
| 89 | 91 |
| 90 void DidCreateScriptContext(blink::WebLocalFrame* frame, | 92 void DidCreateScriptContext(blink::WebLocalFrame* frame, |
| 91 const v8::Local<v8::Context>& context, | 93 const v8::Local<v8::Context>& context, |
| 92 int extension_group, | 94 int extension_group, |
| 93 int world_id); | 95 int world_id); |
| 94 | 96 |
| 95 // Runs on a different thread and should not use any member variables. | 97 // Runs on a different thread and should not use any member variables. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 const std::string& module_name, | 166 const std::string& module_name, |
| 165 const std::string& function_name, | 167 const std::string& function_name, |
| 166 const base::ListValue& args, | 168 const base::ListValue& args, |
| 167 bool user_gesture); | 169 bool user_gesture); |
| 168 void OnSetChannel(int channel); | 170 void OnSetChannel(int channel); |
| 169 void OnSetFunctionNames(const std::vector<std::string>& names); | 171 void OnSetFunctionNames(const std::vector<std::string>& names); |
| 170 void OnSetScriptingWhitelist( | 172 void OnSetScriptingWhitelist( |
| 171 const ExtensionsClient::ScriptingWhitelist& extension_ids); | 173 const ExtensionsClient::ScriptingWhitelist& extension_ids); |
| 172 void OnSetSystemFont(const std::string& font_family, | 174 void OnSetSystemFont(const std::string& font_family, |
| 173 const std::string& font_size); | 175 const std::string& font_size); |
| 176 void OnSetWebViewPartitionID(const std::string& partition_id); | |
| 174 void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id); | 177 void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id); |
| 175 void OnSuspend(const std::string& extension_id); | 178 void OnSuspend(const std::string& extension_id); |
| 176 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 179 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
| 177 void OnUnloaded(const std::string& id); | 180 void OnUnloaded(const std::string& id); |
| 178 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 181 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
| 179 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 182 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
| 180 const std::string& extension_id, | 183 const std::string& extension_id, |
| 181 const URLPatternSet& new_hosts, | 184 const URLPatternSet& new_hosts, |
| 182 bool update_origin_whitelist, | 185 bool update_origin_whitelist, |
| 183 int tab_id); | 186 int tab_id); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 bool is_webkit_initialized_; | 301 bool is_webkit_initialized_; |
| 299 | 302 |
| 300 // It is important for this to come after the ScriptInjectionManager, so that | 303 // It is important for this to come after the ScriptInjectionManager, so that |
| 301 // the observer is destroyed before the UserScriptSet. | 304 // the observer is destroyed before the UserScriptSet. |
| 302 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer> | 305 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer> |
| 303 user_script_set_manager_observer_; | 306 user_script_set_manager_observer_; |
| 304 | 307 |
| 305 // Status of webrequest usage. | 308 // Status of webrequest usage. |
| 306 bool webrequest_used_; | 309 bool webrequest_used_; |
| 307 | 310 |
| 311 // The WebView partition ID associated with this process's storage partition, | |
| 312 // if this renderer is a WebView guest render process. Otherwise, this will be | |
| 313 // empty. | |
| 314 std::string webview_partition_id_; | |
| 315 | |
| 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 316 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 309 }; | 317 }; |
| 310 | 318 |
| 311 } // namespace extensions | 319 } // namespace extensions |
| 312 | 320 |
| 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 321 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |