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

Side by Side Diff: extensions/browser/extension_user_script_loader.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSION_USER_SCRIPT_LOADER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_USER_SCRIPT_LOADER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_USER_SCRIPT_LOADER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_USER_SCRIPT_LOADER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/extension_registry_observer.h" 9 #include "extensions/browser/extension_registry_observer.h"
10 #include "extensions/browser/user_script_loader.h" 10 #include "extensions/browser/user_script_loader.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const std::set<int>& added_script_ids, 45 const std::set<int>& added_script_ids,
46 LoadScriptsCallback callback) override; 46 LoadScriptsCallback callback) override;
47 47
48 // Updates |hosts_info_| to contain info for each element of 48 // Updates |hosts_info_| to contain info for each element of
49 // |changed_hosts_|. 49 // |changed_hosts_|.
50 void UpdateHostsInfo(const std::set<HostID>& changed_hosts); 50 void UpdateHostsInfo(const std::set<HostID>& changed_hosts);
51 51
52 // ExtensionRegistryObserver: 52 // ExtensionRegistryObserver:
53 void OnExtensionUnloaded(content::BrowserContext* browser_context, 53 void OnExtensionUnloaded(content::BrowserContext* browser_context,
54 const Extension* extension, 54 const Extension* extension,
55 UnloadedExtensionInfo::Reason reason) override; 55 UnloadedExtensionReason reason) override;
56 56
57 // Initiates script load when we have been waiting for the extension system 57 // Initiates script load when we have been waiting for the extension system
58 // to be ready. 58 // to be ready.
59 void OnExtensionSystemReady(); 59 void OnExtensionSystemReady();
60 60
61 // Maps host info needed for localization to a host ID. 61 // Maps host info needed for localization to a host ID.
62 HostsInfo hosts_info_; 62 HostsInfo hosts_info_;
63 63
64 // Manages content verification of the loaded user scripts. 64 // Manages content verification of the loaded user scripts.
65 scoped_refptr<ContentVerifier> content_verifier_; 65 scoped_refptr<ContentVerifier> content_verifier_;
66 66
67 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 67 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
68 extension_registry_observer_; 68 extension_registry_observer_;
69 69
70 base::WeakPtrFactory<ExtensionUserScriptLoader> weak_factory_; 70 base::WeakPtrFactory<ExtensionUserScriptLoader> weak_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(ExtensionUserScriptLoader); 72 DISALLOW_COPY_AND_ASSIGN(ExtensionUserScriptLoader);
73 }; 73 };
74 74
75 } // namespace extensions 75 } // namespace extensions
76 76
77 #endif // EXTENSIONS_BROWSER_EXTENSION_USER_SCRIPT_LOADER_H_ 77 #endif // EXTENSIONS_BROWSER_EXTENSION_USER_SCRIPT_LOADER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/browser/extension_user_script_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698