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

Unified Diff: chrome/browser/extensions/extension_system_impl.h

Issue 2182633007: Avoid using ContentBrowserClient::IsIllegalOrigin in ResourceDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile failures Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_system_impl.h
diff --git a/chrome/browser/extensions/extension_system_impl.h b/chrome/browser/extensions/extension_system_impl.h
index 5cd96a310ff1c93fcefe1abbea79f166005cdf8e..aa0276130be725492f7c4e07ea5843d15abaf741 100644
--- a/chrome/browser/extensions/extension_system_impl.h
+++ b/chrome/browser/extensions/extension_system_impl.h
@@ -15,6 +15,10 @@
class Profile;
class ValueStore;
+namespace content {
+class ResourceContext;
+}
+
namespace extensions {
class ExtensionSystemSharedFactory;
@@ -70,6 +74,20 @@ class ExtensionSystemImpl : public ExtensionSystem {
private:
friend class ExtensionSystemSharedFactory;
+ // Helper functions to register and unregister extensions. These are invoked
+ // on the IO thread.
+ static void RegisterExtensionHelper(InfoMap* info_map,
+ const Extension* extension,
+ base::Time install_time,
+ bool incognito_enabled,
+ bool notifications_disabled,
+ const content::ResourceContext* context);
+ static void UnregisterExtensionHelper(
+ InfoMap* info_map,
+ const std::string& extension_id,
+ const UnloadedExtensionInfo::Reason reason,
+ const content::ResourceContext* context);
+
// Owns the Extension-related systems that have a single instance
// shared between normal and incognito profiles.
class Shared : public KeyedService {

Powered by Google App Engine
This is Rietveld 408576698