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

Unified Diff: chrome_frame/ready_mode/internal/installation_state.h

Issue 5747002: Implement a ReadyPromptContent that displays a prompt to accept, temporarily ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/ready_mode/internal/ready_mode_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/ready_mode/internal/installation_state.h
===================================================================
--- chrome_frame/ready_mode/internal/installation_state.h (revision 0)
+++ chrome_frame/ready_mode/internal/installation_state.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_
+#define CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_
+#pragma once
+
+// Provides an interface to query and manipulate the registration and
+// installation state of the product.
+class InstallationState {
+ public:
+ virtual ~InstallationState() {}
+
+ // Queries the installation state of the product (whether the product appears
+ // in "Add/Remove Programs" or its equivalent).
+ virtual bool IsProductInstalled() = 0;
+
+ // Queries the registration state of the product (whether the COM objects,
+ // BHO, etc. are registered).
+ virtual bool IsProductRegistered() = 0;
+
+ // Installs the product. Returns true iff successful.
+ virtual bool InstallProduct() = 0;
+
+ // Unregisters the product. Fails if the product is installed. Returns true
+ // iff successful.
+ virtual bool UnregisterProduct() = 0;
+}; // class InstallationState
+
+#endif // CHROME_FRAME_READY_MODE_INTERNAL_INSTALLATION_STATE_H_
Property changes on: chrome_frame\ready_mode\internal\installation_state.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/ready_mode/internal/ready_mode_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698