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

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: A basic working app host installer/uninstaller. 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) 2011 The Chromium Authors. All rights reserved.
grt (UTC plus 2) 2012/07/12 18:37:10 2012
erikwright (departed) 2012/07/16 20:13:11 Done.
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 #pragma once 7 #pragma once
8 8
9 namespace mini_installer { 9 namespace mini_installer {
10 10
11 // A simple container of the mini_installer's configuration, as dictated by the 11 // A simple container of the mini_installer's configuration, as dictated by the
(...skipping 28 matching lines...) Expand all
40 // Returns the app guid to be used for Chrome. --chrome-sxs on the command 40 // Returns the app guid to be used for Chrome. --chrome-sxs on the command
41 // line makes this the canary's app guid. 41 // line makes this the canary's app guid.
42 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; } 42 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; }
43 43
44 // Returns true if --chrome is explicitly or implicitly on the command line. 44 // Returns true if --chrome is explicitly or implicitly on the command line.
45 bool has_chrome() const { return has_chrome_; } 45 bool has_chrome() const { return has_chrome_; }
46 46
47 // Returns true if --chrome-frame is on the command line. 47 // Returns true if --chrome-frame is on the command line.
48 bool has_chrome_frame() const { return has_chrome_frame_; } 48 bool has_chrome_frame() const { return has_chrome_frame_; }
49 49
50 // Returns true if --app-host is on the command line.
51 bool has_app_host() const { return has_app_host_; }
52
50 // Returns true if --multi-install is on the command line. 53 // Returns true if --multi-install is on the command line.
51 bool is_multi_install() const { return is_multi_install_; } 54 bool is_multi_install() const { return is_multi_install_; }
52 55
53 // Returns true if --system-level is on the command line. 56 // Returns true if --system-level is on the command line.
54 bool is_system_level() const { return is_system_level_; } 57 bool is_system_level() const { return is_system_level_; }
55 58
56 protected: 59 protected:
57 void Clear(); 60 void Clear();
58 bool InitializeFromCommandLine(const wchar_t* command_line); 61 bool InitializeFromCommandLine(const wchar_t* command_line);
59 62
60 wchar_t** args_; 63 wchar_t** args_;
61 const wchar_t* chrome_app_guid_; 64 const wchar_t* chrome_app_guid_;
62 const wchar_t* command_line_; 65 const wchar_t* command_line_;
63 int argument_count_; 66 int argument_count_;
64 Operation operation_; 67 Operation operation_;
65 bool has_chrome_; 68 bool has_chrome_;
66 bool has_chrome_frame_; 69 bool has_chrome_frame_;
70 bool has_app_host_;
67 bool is_multi_install_; 71 bool is_multi_install_;
68 bool is_system_level_; 72 bool is_system_level_;
69 73
70 private: 74 private:
71 Configuration(const Configuration&); 75 Configuration(const Configuration&);
72 Configuration& operator=(const Configuration&); 76 Configuration& operator=(const Configuration&);
73 }; 77 };
74 78
75 } // namespace mini_installer 79 } // namespace mini_installer
76 80
77 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 81 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698