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

Side by Side Diff: chrome/installer/mini_installer/configuration.h

Issue 10665002: Implement installation of the Chrome App Host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittests. Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
6 #define CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 6 #define CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
7 7
8 namespace mini_installer { 8 namespace mini_installer {
9 9
10 // A simple container of the mini_installer's configuration, as dictated by the 10 // A simple container of the mini_installer's configuration, as dictated by the
11 // command line used to invoke it. 11 // command line used to invoke it.
(...skipping 27 matching lines...) Expand all
39 // Returns the app guid to be used for Chrome. --chrome-sxs on the command 39 // Returns the app guid to be used for Chrome. --chrome-sxs on the command
40 // line makes this the canary's app guid. 40 // line makes this the canary's app guid.
41 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; } 41 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; }
42 42
43 // Returns true if --chrome is explicitly or implicitly on the command line. 43 // Returns true if --chrome is explicitly or implicitly on the command line.
44 bool has_chrome() const { return has_chrome_; } 44 bool has_chrome() const { return has_chrome_; }
45 45
46 // Returns true if --chrome-frame is on the command line. 46 // Returns true if --chrome-frame is on the command line.
47 bool has_chrome_frame() const { return has_chrome_frame_; } 47 bool has_chrome_frame() const { return has_chrome_frame_; }
48 48
49 // Returns true if --app-host is on the command line.
50 bool has_app_host() const { return has_app_host_; }
51
49 // Returns true if --multi-install is on the command line. 52 // Returns true if --multi-install is on the command line.
50 bool is_multi_install() const { return is_multi_install_; } 53 bool is_multi_install() const { return is_multi_install_; }
51 54
52 // Returns true if --system-level is on the command line. 55 // Returns true if --system-level is on the command line.
53 bool is_system_level() const { return is_system_level_; } 56 bool is_system_level() const { return is_system_level_; }
54 57
55 protected: 58 protected:
56 void Clear(); 59 void Clear();
57 bool InitializeFromCommandLine(const wchar_t* command_line); 60 bool InitializeFromCommandLine(const wchar_t* command_line);
58 61
59 wchar_t** args_; 62 wchar_t** args_;
60 const wchar_t* chrome_app_guid_; 63 const wchar_t* chrome_app_guid_;
61 const wchar_t* command_line_; 64 const wchar_t* command_line_;
62 int argument_count_; 65 int argument_count_;
63 Operation operation_; 66 Operation operation_;
64 bool has_chrome_; 67 bool has_chrome_;
65 bool has_chrome_frame_; 68 bool has_chrome_frame_;
69 bool has_app_host_;
66 bool is_multi_install_; 70 bool is_multi_install_;
67 bool is_system_level_; 71 bool is_system_level_;
68 72
69 private: 73 private:
70 Configuration(const Configuration&); 74 Configuration(const Configuration&);
71 Configuration& operator=(const Configuration&); 75 Configuration& operator=(const Configuration&);
72 }; 76 };
73 77
74 } // namespace mini_installer 78 } // namespace mini_installer
75 79
76 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 80 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698