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

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

Issue 2193093002: [UserScript cleanup] Remove use of ScopedVector from UserScriptSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool update_origin_whitelist, 197 bool update_origin_whitelist,
198 int tab_id); 198 int tab_id);
199 void OnClearTabSpecificPermissions( 199 void OnClearTabSpecificPermissions(
200 const std::vector<std::string>& extension_ids, 200 const std::vector<std::string>& extension_ids,
201 bool update_origin_whitelist, 201 bool update_origin_whitelist,
202 int tab_id); 202 int tab_id);
203 void OnUsingWebRequestAPI(bool webrequest_used); 203 void OnUsingWebRequestAPI(bool webrequest_used);
204 void OnSetActivityLoggingEnabled(bool enabled); 204 void OnSetActivityLoggingEnabled(bool enabled);
205 205
206 // UserScriptSetManager::Observer implementation. 206 // UserScriptSetManager::Observer implementation.
207 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts, 207 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts) override;
208 const std::vector<UserScript*>& scripts) override;
209 208
210 void UpdateActiveExtensions(); 209 void UpdateActiveExtensions();
211 210
212 // Sets up the host permissions for |extension|. 211 // Sets up the host permissions for |extension|.
213 void InitOriginPermissions(const Extension* extension); 212 void InitOriginPermissions(const Extension* extension);
214 213
215 // Updates the host permissions for the extension url to include only those in 214 // Updates the host permissions for the extension url to include only those in
216 // |new_patterns|, and remove from |old_patterns| that are no longer allowed. 215 // |new_patterns|, and remove from |old_patterns| that are no longer allowed.
217 void UpdateOriginPermissions(const GURL& extension_url, 216 void UpdateOriginPermissions(const GURL& extension_url,
218 const URLPatternSet& old_patterns, 217 const URLPatternSet& old_patterns,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // if this renderer is a WebView guest render process. Otherwise, this will be 318 // if this renderer is a WebView guest render process. Otherwise, this will be
320 // empty. 319 // empty.
321 std::string webview_partition_id_; 320 std::string webview_partition_id_;
322 321
323 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 322 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
324 }; 323 };
325 324
326 } // namespace extensions 325 } // namespace extensions
327 326
328 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 327 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698