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

Side by Side Diff: extensions/browser/declarative_user_script_manager.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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
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_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_ 5 #ifndef EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
6 #define EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_ 6 #define EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 26 matching lines...) Expand all
37 DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByID( 37 DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByID(
38 const HostID& host_id); 38 const HostID& host_id);
39 39
40 private: 40 private:
41 using UserScriptMasterMap = 41 using UserScriptMasterMap =
42 std::map<HostID, std::unique_ptr<DeclarativeUserScriptMaster>>; 42 std::map<HostID, std::unique_ptr<DeclarativeUserScriptMaster>>;
43 43
44 // ExtensionRegistryObserver: 44 // ExtensionRegistryObserver:
45 void OnExtensionUnloaded(content::BrowserContext* browser_context, 45 void OnExtensionUnloaded(content::BrowserContext* browser_context,
46 const Extension* extension, 46 const Extension* extension,
47 UnloadedExtensionInfo::Reason reason) override; 47 UnloadedExtensionReason reason) override;
48 48
49 // Creates a DeclarativeUserScriptMaster object. 49 // Creates a DeclarativeUserScriptMaster object.
50 DeclarativeUserScriptMaster* CreateDeclarativeUserScriptMaster( 50 DeclarativeUserScriptMaster* CreateDeclarativeUserScriptMaster(
51 const HostID& host_id); 51 const HostID& host_id);
52 52
53 // A map of DeclarativeUserScriptMasters for each host; each master 53 // A map of DeclarativeUserScriptMasters for each host; each master
54 // is lazily initialized. 54 // is lazily initialized.
55 UserScriptMasterMap declarative_user_script_masters_; 55 UserScriptMasterMap declarative_user_script_masters_;
56 56
57 content::BrowserContext* browser_context_; 57 content::BrowserContext* browser_context_;
58 58
59 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 59 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
60 extension_registry_observer_; 60 extension_registry_observer_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(DeclarativeUserScriptManager); 62 DISALLOW_COPY_AND_ASSIGN(DeclarativeUserScriptManager);
63 }; 63 };
64 64
65 } // namespace extensions 65 } // namespace extensions
66 66
67 #endif // EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_ 67 #endif // EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
OLDNEW
« no previous file with comments | « extensions/browser/content_verifier.cc ('k') | extensions/browser/declarative_user_script_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698