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

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: 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 void set_error_on_unsupported_requirements(bool val) { 175 void set_error_on_unsupported_requirements(bool val) {
176 error_on_unsupported_requirements_ = val; 176 error_on_unsupported_requirements_ = val;
177 } 177 }
178 178
179 void set_install_wait_for_idle(bool val) { 179 void set_install_wait_for_idle(bool val) {
180 install_wait_for_idle_ = val; 180 install_wait_for_idle_ = val;
181 } 181 }
182 182
183 void set_is_ephemeral(bool val) {
184 is_ephemeral_ = val;
185 }
186
183 bool did_handle_successfully() const { return did_handle_successfully_; } 187 bool did_handle_successfully() const { return did_handle_successfully_; }
184 188
185 Profile* profile() { return installer_.profile(); } 189 Profile* profile() { return installer_.profile(); }
186 190
187 const Extension* extension() { return installer_.extension().get(); } 191 const Extension* extension() { return installer_.extension().get(); }
188 192
189 private: 193 private:
190 friend class ::ExtensionServiceTest; 194 friend class ::ExtensionServiceTest;
191 friend class ExtensionUpdaterTest; 195 friend class ExtensionUpdaterTest;
192 friend class ExtensionCrxInstallerTest; 196 friend class ExtensionCrxInstallerTest;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Sequenced task runner where file I/O operations will be performed. 388 // Sequenced task runner where file I/O operations will be performed.
385 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_; 389 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_;
386 390
387 // Used to show the install dialog. 391 // Used to show the install dialog.
388 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; 392 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_;
389 393
390 // Whether the update is initiated by the user from the extension settings 394 // Whether the update is initiated by the user from the extension settings
391 // page. 395 // page.
392 bool update_from_settings_page_; 396 bool update_from_settings_page_;
393 397
398 // True if an ephemeral app is being installed.
399 bool is_ephemeral_;
400
394 // Gives access to common methods and data of an extension installer. 401 // Gives access to common methods and data of an extension installer.
395 ExtensionInstaller installer_; 402 ExtensionInstaller installer_;
396 403
397 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 404 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
398 }; 405 };
399 406
400 } // namespace extensions 407 } // namespace extensions
401 408
402 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 409 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698