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

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

Issue 307933008: Revert 273866 "Block content scripts from executing until user g..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/extensions/common/user_script.h ('k') | trunk/src/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 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);
184 void OnUsingWebRequestAPI(bool adblock, 183 void OnUsingWebRequestAPI(bool adblock,
185 bool adblock_plus, 184 bool adblock_plus,
186 bool other_webrequest); 185 bool other_webrequest);
187 186
188 void UpdateActiveExtensions(); 187 void UpdateActiveExtensions();
189 188
190 // Sets up the host permissions for |extension|. 189 // Sets up the host permissions for |extension|.
191 void InitOriginPermissions(const Extension* extension, 190 void InitOriginPermissions(const Extension* extension,
192 Feature::Context context_type); 191 Feature::Context context_type);
193 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason, 192 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 284
286 // True once WebKit has been initialized (and it is therefore safe to poke). 285 // True once WebKit has been initialized (and it is therefore safe to poke).
287 bool is_webkit_initialized_; 286 bool is_webkit_initialized_;
288 287
289 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 288 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
290 }; 289 };
291 290
292 } // namespace extensions 291 } // namespace extensions
293 292
294 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 293 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « trunk/src/extensions/common/user_script.h ('k') | trunk/src/extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698