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

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

Issue 315413004: Remove param |context_type| from InitOriginPermissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: is_extension_active Created 6 years, 6 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 | Annotate | Revision Log
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const URLPatternSet& origin_set); 182 const URLPatternSet& origin_set);
183 void OnUpdateUserScripts(base::SharedMemoryHandle scripts, 183 void OnUpdateUserScripts(base::SharedMemoryHandle scripts,
184 const std::set<std::string>& extension_ids); 184 const std::set<std::string>& extension_ids);
185 void OnUsingWebRequestAPI(bool adblock, 185 void OnUsingWebRequestAPI(bool adblock,
186 bool adblock_plus, 186 bool adblock_plus,
187 bool other_webrequest); 187 bool other_webrequest);
188 188
189 void UpdateActiveExtensions(); 189 void UpdateActiveExtensions();
190 190
191 // Sets up the host permissions for |extension|. 191 // Sets up the host permissions for |extension|.
192 void InitOriginPermissions(const Extension* extension, 192 void InitOriginPermissions(const Extension* extension);
193 Feature::Context context_type);
194 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason, 193 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason,
195 const Extension* extension, 194 const Extension* extension,
196 const URLPatternSet& origins); 195 const URLPatternSet& origins);
197 196
198 // Enable custom element whitelist in Apps. 197 // Enable custom element whitelist in Apps.
199 void EnableCustomElementWhiteList(); 198 void EnableCustomElementWhiteList();
200 199
201 // Adds or removes bindings for every context belonging to |extension_id|, or 200 // Adds or removes bindings for every context belonging to |extension_id|, or
202 // or all contexts if |extension_id| is empty. 201 // or all contexts if |extension_id| is empty.
203 void UpdateBindings(const std::string& extension_id); 202 void UpdateBindings(const std::string& extension_id);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 285
287 // True once WebKit has been initialized (and it is therefore safe to poke). 286 // True once WebKit has been initialized (and it is therefore safe to poke).
288 bool is_webkit_initialized_; 287 bool is_webkit_initialized_;
289 288
290 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 289 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
291 }; 290 };
292 291
293 } // namespace extensions 292 } // namespace extensions
294 293
295 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 294 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698