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

Side by Side Diff: chrome/installer/util/installation_state.h

Issue 6588003: Add support for the quick-enable-cf command to the installer. This encompase... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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.
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_UTIL_INSTALLATION_STATE_H_ 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
15 #include "chrome/installer/util/browser_distribution.h" 15 #include "chrome/installer/util/browser_distribution.h"
16 #include "chrome/installer/util/channel_info.h" 16 #include "chrome/installer/util/channel_info.h"
17 #include "chrome/installer/util/product_commands.h"
17 18
18 class Version; 19 class Version;
19 20
20 namespace installer { 21 namespace installer {
21 22
22 class InstallationState; 23 class InstallationState;
23 class MasterPreferences; 24 class MasterPreferences;
24 25
25 // A representation of a product's state on the machine based on the contents 26 // A representation of a product's state on the machine based on the contents
26 // of the Windows registry. 27 // of the Windows registry.
(...skipping 30 matching lines...) Expand all
57 58
58 // True if the "msi" value in the ClientState key is present and non-zero. 59 // True if the "msi" value in the ClientState key is present and non-zero.
59 bool is_msi() const { return msi_; } 60 bool is_msi() const { return msi_; }
60 61
61 // The command to uninstall the product; may be empty. 62 // The command to uninstall the product; may be empty.
62 const CommandLine& uninstall_command() const { return uninstall_command_; } 63 const CommandLine& uninstall_command() const { return uninstall_command_; }
63 64
64 // True if |uninstall_command| contains --multi-install. 65 // True if |uninstall_command| contains --multi-install.
65 bool is_multi_install() const { return multi_install_; } 66 bool is_multi_install() const { return multi_install_; }
66 67
68 // Returns the set of Google Update commands.
69 const ProductCommands& commands() const { return commands_; }
70
67 // Returns this object a la operator=(). 71 // Returns this object a la operator=().
68 ProductState& CopyFrom(const ProductState& other); 72 ProductState& CopyFrom(const ProductState& other);
69 73
70 protected: 74 protected:
71 ChannelInfo channel_; 75 ChannelInfo channel_;
72 scoped_ptr<Version> version_; 76 scoped_ptr<Version> version_;
73 scoped_ptr<Version> old_version_; 77 scoped_ptr<Version> old_version_;
74 std::wstring rename_cmd_; 78 std::wstring rename_cmd_;
75 CommandLine uninstall_command_; 79 CommandLine uninstall_command_;
80 ProductCommands commands_;
76 bool msi_; 81 bool msi_;
77 bool multi_install_; 82 bool multi_install_;
78 83
79 private: 84 private:
80 friend class InstallationState; 85 friend class InstallationState;
81 86
82 DISALLOW_COPY_AND_ASSIGN(ProductState); 87 DISALLOW_COPY_AND_ASSIGN(ProductState);
83 }; // class ProductState 88 }; // class ProductState
84 89
85 // Encapsulates the state of all products on the system. 90 // Encapsulates the state of all products on the system.
(...skipping 23 matching lines...) Expand all
109 ProductState user_products_[NUM_PRODUCTS]; 114 ProductState user_products_[NUM_PRODUCTS];
110 ProductState system_products_[NUM_PRODUCTS]; 115 ProductState system_products_[NUM_PRODUCTS];
111 116
112 private: 117 private:
113 DISALLOW_COPY_AND_ASSIGN(InstallationState); 118 DISALLOW_COPY_AND_ASSIGN(InstallationState);
114 }; // class InstallationState 119 }; // class InstallationState
115 120
116 } // namespace installer 121 } // namespace installer
117 122
118 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ 123 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698