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

Side by Side Diff: chrome/browser/extensions/crx_installer.h

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 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 (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_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 177
178 void set_error_on_unsupported_requirements(bool val) { 178 void set_error_on_unsupported_requirements(bool val) {
179 error_on_unsupported_requirements_ = val; 179 error_on_unsupported_requirements_ = val;
180 } 180 }
181 181
182 void set_install_wait_for_idle(bool val) { 182 void set_install_wait_for_idle(bool val) {
183 install_wait_for_idle_ = val; 183 install_wait_for_idle_ = val;
184 } 184 }
185 185
186 void set_is_ephemeral(bool val) {
187 is_ephemeral_ = val;
188 }
189
186 bool did_handle_successfully() const { return did_handle_successfully_; } 190 bool did_handle_successfully() const { return did_handle_successfully_; }
187 191
188 Profile* profile() { return installer_.profile(); } 192 Profile* profile() { return installer_.profile(); }
189 193
190 const Extension* extension() { return installer_.extension().get(); } 194 const Extension* extension() { return installer_.extension().get(); }
191 195
192 private: 196 private:
193 friend class ::ExtensionServiceTest; 197 friend class ::ExtensionServiceTest;
194 friend class ExtensionUpdaterTest; 198 friend class ExtensionUpdaterTest;
195 friend class ExtensionCrxInstallerTest; 199 friend class ExtensionCrxInstallerTest;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Sequenced task runner where file I/O operations will be performed. 395 // Sequenced task runner where file I/O operations will be performed.
392 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_; 396 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_;
393 397
394 // Used to show the install dialog. 398 // Used to show the install dialog.
395 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; 399 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_;
396 400
397 // Whether the update is initiated by the user from the extension settings 401 // Whether the update is initiated by the user from the extension settings
398 // page. 402 // page.
399 bool update_from_settings_page_; 403 bool update_from_settings_page_;
400 404
405 // True if an ephemeral app is being installed.
406 bool is_ephemeral_;
407
401 // Gives access to common methods and data of an extension installer. 408 // Gives access to common methods and data of an extension installer.
402 ExtensionInstaller installer_; 409 ExtensionInstaller installer_;
403 410
404 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 411 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
405 }; 412 };
406 413
407 } // namespace extensions 414 } // namespace extensions
408 415
409 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 416 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_app_sorting_unittest.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698