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

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

Issue 169053005: Allow cross-origin XHR in unblessed extension context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable chrome://extension-icon for non-extension contexts Created 6 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool adblock_plus, 197 bool adblock_plus,
198 bool other_webrequest); 198 bool other_webrequest);
199 void OnShouldSuspend(const std::string& extension_id, int sequence_id); 199 void OnShouldSuspend(const std::string& extension_id, int sequence_id);
200 void OnSuspend(const std::string& extension_id); 200 void OnSuspend(const std::string& extension_id);
201 void OnCancelSuspend(const std::string& extension_id); 201 void OnCancelSuspend(const std::string& extension_id);
202 202
203 // Update the list of active extensions that will be reported when we crash. 203 // Update the list of active extensions that will be reported when we crash.
204 void UpdateActiveExtensions(); 204 void UpdateActiveExtensions();
205 205
206 // Sets up the host permissions for |extension|. 206 // Sets up the host permissions for |extension|.
207 void InitOriginPermissions(const Extension* extension); 207 void InitOriginPermissions(const Extension* extension,
208 Feature::Context context_type);
208 void AddOrRemoveOriginPermissions( 209 void AddOrRemoveOriginPermissions(
209 UpdatedExtensionPermissionsInfo::Reason reason, 210 UpdatedExtensionPermissionsInfo::Reason reason,
210 const Extension* extension, 211 const Extension* extension,
211 const URLPatternSet& origins); 212 const URLPatternSet& origins);
212 213
213 // Enable custom element whitelist in Apps. 214 // Enable custom element whitelist in Apps.
214 void EnableCustomElementWhiteList(); 215 void EnableCustomElementWhiteList();
215 216
216 // Adds or removes bindings for every context belonging to |extension_id|, or 217 // Adds or removes bindings for every context belonging to |extension_id|, or
217 // or all contexts if |extension_id| is empty. 218 // or all contexts if |extension_id| is empty.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 314
314 // Mapping of port IDs to tabs. If there is no tab, the value would be -1. 315 // Mapping of port IDs to tabs. If there is no tab, the value would be -1.
315 std::map<int, int> port_to_tab_id_map_; 316 std::map<int, int> port_to_tab_id_map_;
316 317
317 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 318 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
318 }; 319 };
319 320
320 } // namespace extensions 321 } // namespace extensions
321 322
322 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 323 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/dispatcher.cc » ('j') | chrome/renderer/extensions/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698