Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: extensions/renderer/dispatcher.h

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Rebased. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/common/manifest_handlers/webview_info.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const ScriptContextSet& script_context_set() const { 72 const ScriptContextSet& script_context_set() const {
73 return *script_context_set_; 73 return *script_context_set_;
74 } 74 }
75 75
76 V8SchemaRegistry* v8_schema_registry() { return v8_schema_registry_.get(); } 76 V8SchemaRegistry* v8_schema_registry() { return v8_schema_registry_.get(); }
77 77
78 ContentWatcher* content_watcher() { return content_watcher_.get(); } 78 ContentWatcher* content_watcher() { return content_watcher_.get(); }
79 79
80 RequestSender* request_sender() { return request_sender_.get(); } 80 RequestSender* request_sender() { return request_sender_.get(); }
81 81
82 const std::string& webview_partition_id() { return webview_partition_id_; }
83
82 void OnRenderFrameCreated(content::RenderFrame* render_frame); 84 void OnRenderFrameCreated(content::RenderFrame* render_frame);
83 85
84 bool IsExtensionActive(const std::string& extension_id) const; 86 bool IsExtensionActive(const std::string& extension_id) const;
85 87
86 void DidCreateScriptContext(blink::WebLocalFrame* frame, 88 void DidCreateScriptContext(blink::WebLocalFrame* frame,
87 const v8::Local<v8::Context>& context, 89 const v8::Local<v8::Context>& context,
88 int extension_group, 90 int extension_group,
89 int world_id); 91 int world_id);
90 92
91 // Runs on a different thread and should not use any member variables. 93 // Runs on a different thread and should not use any member variables.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void OnMessageInvoke(const std::string& extension_id, 161 void OnMessageInvoke(const std::string& extension_id,
160 const std::string& module_name, 162 const std::string& module_name,
161 const std::string& function_name, 163 const std::string& function_name,
162 const base::ListValue& args, 164 const base::ListValue& args,
163 bool user_gesture); 165 bool user_gesture);
164 void OnSetChannel(int channel); 166 void OnSetChannel(int channel);
165 void OnSetScriptingWhitelist( 167 void OnSetScriptingWhitelist(
166 const ExtensionsClient::ScriptingWhitelist& extension_ids); 168 const ExtensionsClient::ScriptingWhitelist& extension_ids);
167 void OnSetSystemFont(const std::string& font_family, 169 void OnSetSystemFont(const std::string& font_family,
168 const std::string& font_size); 170 const std::string& font_size);
171 void OnSetWebViewPartitionID(const std::string& partition_id);
169 void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id); 172 void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id);
170 void OnSuspend(const std::string& extension_id); 173 void OnSuspend(const std::string& extension_id);
171 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); 174 void OnTransferBlobs(const std::vector<std::string>& blob_uuids);
172 void OnUnloaded(const std::string& id); 175 void OnUnloaded(const std::string& id);
173 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); 176 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
174 void OnUpdateTabSpecificPermissions(const GURL& visible_url, 177 void OnUpdateTabSpecificPermissions(const GURL& visible_url,
175 const std::string& extension_id, 178 const std::string& extension_id,
176 const URLPatternSet& new_hosts, 179 const URLPatternSet& new_hosts,
177 bool update_origin_whitelist, 180 bool update_origin_whitelist,
178 int tab_id); 181 int tab_id);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 bool is_webkit_initialized_; 293 bool is_webkit_initialized_;
291 294
292 // It is important for this to come after the ScriptInjectionManager, so that 295 // It is important for this to come after the ScriptInjectionManager, so that
293 // the observer is destroyed before the UserScriptSet. 296 // the observer is destroyed before the UserScriptSet.
294 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer> 297 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer>
295 user_script_set_manager_observer_; 298 user_script_set_manager_observer_;
296 299
297 // Status of webrequest usage. 300 // Status of webrequest usage.
298 bool webrequest_used_; 301 bool webrequest_used_;
299 302
303 // The WebView partition ID associated with this process's storage partition,
304 // if this renderer is a WebView guest render process. Otherwise, this will be
305 // empty.
306 std::string webview_partition_id_;
307
300 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
301 }; 309 };
302 310
303 } // namespace extensions 311 } // namespace extensions
304 312
305 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/common/manifest_handlers/webview_info.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698