OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ |
| 6 #define CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ |
| 7 |
| 8 #include <atlbase.h> |
| 9 #include <atlcom.h> |
| 10 |
| 11 interface IWebBrowser2; |
| 12 |
| 13 // Integrates the Turndown prompt functionality with a specified IWebBrowser2 |
| 14 // instance. Displays prompts informing the user that Chrome Frame is being |
| 15 // turned down. |
| 16 namespace turndown_prompt { |
| 17 |
| 18 // Returns true if the Turndown prompt is suppressed by group policy, either |
| 19 // implicitly by disabling updates to Chrome Frame, or explicitly by the |
| 20 // SuppressChromeFrameTurndownPrompt GPO. |
| 21 bool IsPromptSuppressed(); |
| 22 |
| 23 // Configures |web_browser| for the turndown prompt if the prompt has not been |
| 24 // suppressed. |
| 25 void Configure(IWebBrowser2* web_browser); |
| 26 |
| 27 }; // namespace turndown_prompt |
| 28 |
| 29 #endif // CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ |
OLD | NEW |