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

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

Issue 988633003: Refactoring: de-couple Extensions from "script injection System" [render side]:4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const URLPatternSet& new_hosts, 192 const URLPatternSet& new_hosts,
193 bool update_origin_whitelist, 193 bool update_origin_whitelist,
194 int tab_id); 194 int tab_id);
195 void OnClearTabSpecificPermissions( 195 void OnClearTabSpecificPermissions(
196 const std::vector<std::string>& extension_ids, 196 const std::vector<std::string>& extension_ids,
197 bool update_origin_whitelist, 197 bool update_origin_whitelist,
198 int tab_id); 198 int tab_id);
199 void OnUsingWebRequestAPI(bool webrequest_used); 199 void OnUsingWebRequestAPI(bool webrequest_used);
200 200
201 // UserScriptSetManager::Observer implementation. 201 // UserScriptSetManager::Observer implementation.
202 void OnUserScriptsUpdated(const std::set<std::string>& changed_extensions, 202 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts,
203 const std::vector<UserScript*>& scripts) override; 203 const std::vector<UserScript*>& scripts) override;
204 204
205 void UpdateActiveExtensions(); 205 void UpdateActiveExtensions();
206 206
207 // Sets up the host permissions for |extension|. 207 // Sets up the host permissions for |extension|.
208 void InitOriginPermissions(const Extension* extension); 208 void InitOriginPermissions(const Extension* extension);
209 209
210 // Updates the host permissions for the extension url to include only those in 210 // Updates the host permissions for the extension url to include only those in
211 // |new_patterns|, and remove from |old_patterns| that are no longer allowed. 211 // |new_patterns|, and remove from |old_patterns| that are no longer allowed.
212 void UpdateOriginPermissions(const GURL& extension_url, 212 void UpdateOriginPermissions(const GURL& extension_url,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // Status of webrequest usage. 323 // Status of webrequest usage.
324 bool webrequest_used_; 324 bool webrequest_used_;
325 325
326 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 326 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
327 }; 327 };
328 328
329 } // namespace extensions 329 } // namespace extensions
330 330
331 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 331 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698