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

Unified Diff: chrome_frame/turndown_prompt/turndown_prompt.h

Issue 17153006: Chrome Frame turndown prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/turndown_prompt/turndown_prompt.h
diff --git a/chrome_frame/turndown_prompt/turndown_prompt.h b/chrome_frame/turndown_prompt/turndown_prompt.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd958fe3983e07517e5070f0a5c0e3daf1a6dd74
--- /dev/null
+++ b/chrome_frame/turndown_prompt/turndown_prompt.h
@@ -0,0 +1,29 @@
+// Copyright 2013 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_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_
+#define CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_
+
+#include <atlbase.h>
+#include <atlcom.h>
+
+interface IWebBrowser2;
+
+// Integrates the Turndown prompt functionality with a specified IWebBrowser2
+// instance. Displays prompts informing the user that Chrome Frame is being
+// turned down.
+namespace turndown_prompt {
+
+// Returns true if the Turndown prompt is suppressed by group policy, either
+// implicitly by disabling updates to Chrome Frame, or explicitly by the
+// SuppressChromeFrameTurndownPrompt GPO.
+bool IsPromptSuppressed();
+
+// Configures |web_browser| for the turndown prompt if the prompt has not been
+// suppressed.
+void Configure(IWebBrowser2* web_browser);
+
+}; // namespace turndown_prompt
+
+#endif // CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_

Powered by Google App Engine
This is Rietveld 408576698