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

Side by Side Diff: chrome/browser/extensions/extension_service_test_with_install.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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool use_helper, 117 bool use_helper,
118 Extension::State expected_state); 118 Extension::State expected_state);
119 119
120 void TerminateExtension(const std::string& id); 120 void TerminateExtension(const std::string& id);
121 121
122 // ExtensionRegistryObserver: 122 // ExtensionRegistryObserver:
123 void OnExtensionLoaded(content::BrowserContext* browser_context, 123 void OnExtensionLoaded(content::BrowserContext* browser_context,
124 const Extension* extension) override; 124 const Extension* extension) override;
125 void OnExtensionUnloaded(content::BrowserContext* browser_context, 125 void OnExtensionUnloaded(content::BrowserContext* browser_context,
126 const Extension* extension, 126 const Extension* extension,
127 UnloadedExtensionInfo::Reason reason) override; 127 UnloadedExtensionReason reason) override;
128 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, 128 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context,
129 const Extension* extension, 129 const Extension* extension,
130 bool is_update, 130 bool is_update,
131 const std::string& old_name) override; 131 const std::string& old_name) override;
132 132
133 // TODO(treib,devlin): Make these private and add accessors as needed. 133 // TODO(treib,devlin): Make these private and add accessors as needed.
134 extensions::ExtensionList loaded_; 134 extensions::ExtensionList loaded_;
135 const Extension* installed_; 135 const Extension* installed_;
136 bool was_update_; 136 bool was_update_;
137 std::string old_name_; 137 std::string old_name_;
138 std::string unloaded_id_; 138 std::string unloaded_id_;
139 UnloadedExtensionInfo::Reason unloaded_reason_; 139 UnloadedExtensionReason unloaded_reason_;
140 140
141 private: 141 private:
142 void InstallCRXInternal(const base::FilePath& crx_path, 142 void InstallCRXInternal(const base::FilePath& crx_path,
143 Manifest::Location install_location, 143 Manifest::Location install_location,
144 InstallState install_state, 144 InstallState install_state,
145 int creation_flags); 145 int creation_flags);
146 146
147 size_t expected_extensions_count_; 147 size_t expected_extensions_count_;
148 148
149 FeatureSwitch::ScopedOverride override_external_install_prompt_; 149 FeatureSwitch::ScopedOverride override_external_install_prompt_;
150 150
151 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 151 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
152 registry_observer_; 152 registry_observer_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestWithInstall); 154 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestWithInstall);
155 }; 155 };
156 156
157 } // namespace extensions 157 } // namespace extensions
158 158
159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_ 159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_WITH_INSTALL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/extension_service_test_with_install.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698