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

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

Issue 288053002: Block content scripts from executing until user grants permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after ScriptInjection refactor Created 6 years, 7 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void OnSetSystemFont(const std::string& font_family, 172 void OnSetSystemFont(const std::string& font_family,
173 const std::string& font_size); 173 const std::string& font_size);
174 void OnShouldSuspend(const std::string& extension_id, int sequence_id); 174 void OnShouldSuspend(const std::string& extension_id, int sequence_id);
175 void OnSuspend(const std::string& extension_id); 175 void OnSuspend(const std::string& extension_id);
176 void OnUnloaded(const std::string& id); 176 void OnUnloaded(const std::string& id);
177 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); 177 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
178 void OnUpdateTabSpecificPermissions(int page_id, 178 void OnUpdateTabSpecificPermissions(int page_id,
179 int tab_id, 179 int tab_id,
180 const std::string& extension_id, 180 const std::string& extension_id,
181 const URLPatternSet& origin_set); 181 const URLPatternSet& origin_set);
182 void OnUpdateUserScripts(base::SharedMemoryHandle scripts); 182 void OnUpdateUserScripts(base::SharedMemoryHandle scripts,
183 const std::set<std::string>& extension_ids);
183 void OnUsingWebRequestAPI(bool adblock, 184 void OnUsingWebRequestAPI(bool adblock,
184 bool adblock_plus, 185 bool adblock_plus,
185 bool other_webrequest); 186 bool other_webrequest);
186 187
187 void UpdateActiveExtensions(); 188 void UpdateActiveExtensions();
188 189
189 // Sets up the host permissions for |extension|. 190 // Sets up the host permissions for |extension|.
190 void InitOriginPermissions(const Extension* extension, 191 void InitOriginPermissions(const Extension* extension,
191 Feature::Context context_type); 192 Feature::Context context_type);
192 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason, 193 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 285
285 // 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).
286 bool is_webkit_initialized_; 287 bool is_webkit_initialized_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 289 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
289 }; 290 };
290 291
291 } // namespace extensions 292 } // namespace extensions
292 293
293 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 294 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698