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
3 // found in the LICENSE file.
5 #ifndef CHROME_FRAME_READY_MODE_READY_MODE_H_
6 #define CHROME_FRAME_READY_MODE_READY_MODE_H_
12 #include "base/basictypes.h"
14 interface IWebBrowser2
;
16 // Integrates Ready Mode functionality with a specified IWebBrowser2 instance.
17 // Displays prompts allowing the user to permanently activate, permanently
18 // disable, or temporarily disable Chrome Frame whenever a Chrome Frame-enabled
19 // site is rendered in the browser.
20 namespace ready_mode
{
22 // Defines an interface for disabling Chrome Frame based on user interaction
26 virtual ~Delegate() {}
28 // Disables Chrome Frame functionality in the current process. Will be
29 // called after the installer has been invoked to manipulate the system or
31 virtual void DisableChromeFrame() = 0;
34 // Enables Ready Mode for the specified IWebBrowser2 instance, if Chrome Frame
35 // is currently in Ready Mode. If Chrome Frame is temporarily or permanently
36 // declined, will invoke chrome_frame->DisableChromeFrame() to synchronize the
37 // process state with the system- / user-level state.
38 void Configure(Delegate
* chrome_frame
, IWebBrowser2
* web_browser
);
40 }; // namespace ready_mode
42 #endif // CHROME_FRAME_READY_MODE_READY_MODE_H_