OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_ |
| 6 #define CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_ |
| 7 #pragma once |
| 8 |
| 9 // Provides an interface to query and manipulate the registration and |
| 10 // installation state of the product. |
| 11 class InstallationState { |
| 12 public: |
| 13 virtual ~InstallationState() {} |
| 14 |
| 15 // Queries the installation state of the product (whether the product appears |
| 16 // in "Add/Remove Programs" or its equivalent). |
| 17 virtual bool IsProductInstalled() = 0; |
| 18 |
| 19 // Queries the registration state of the product (whether the COM objects, |
| 20 // BHO, etc. are registered). |
| 21 virtual bool IsProductRegistered() = 0; |
| 22 |
| 23 // Installs the product. Returns true iff successful. |
| 24 virtual bool InstallProduct() = 0; |
| 25 |
| 26 // Unregisters the product. Fails if the product is installed. Returns true |
| 27 // iff successful. |
| 28 virtual bool UnregisterProduct() = 0; |
| 29 }; // class InstallationState |
| 30 |
| 31 #endif // CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_ |
OLD | NEW |