Index: chrome/browser/blocked_plugin_manager.h |
diff --git a/chrome/browser/blocked_plugin_manager.h b/chrome/browser/blocked_plugin_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e9f9506dcc14b6883f121f48e039992c97ad62d7 |
--- /dev/null |
+++ b/chrome/browser/blocked_plugin_manager.h |
@@ -0,0 +1,36 @@ |
+// 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_BROWSER_BLOCKED_PLUGIN_MANAGER_H_ |
+#define CHROME_BROWSER_BLOCKED_PLUGIN_MANAGER_H_ |
+ |
+#include "chrome/browser/renderer_host/render_view_host_delegate.h" |
+#include "chrome/browser/tab_contents/infobar_delegate.h" |
+ |
+class TabContents; |
+ |
+class BlockedPluginManager : public RenderViewHostDelegate::BlockedPlugin, |
+ public ConfirmInfoBarDelegate { |
+ public: |
+ explicit BlockedPluginManager(TabContents* tab_contents); |
+ |
+ virtual void OnNonSandboxedPluginBlocked(const string16& name); |
+ virtual void OnBlockedPluginLoaded(); |
+ |
+ // ConfirmInfoBarDelegate methods |
+ virtual int GetButtons() const; |
+ virtual std::wstring GetButtonLabel(InfoBarButton button) const; |
+ virtual std::wstring GetMessageText() const; |
+ virtual std::wstring GetLinkText(); |
+ virtual SkBitmap* GetIcon() const; |
+ virtual bool Accept(); |
+ virtual bool LinkClicked(WindowOpenDisposition disposition); |
+ |
+ private: |
+ // Owns us. |
+ TabContents* tab_contents_; |
+ string16 name_; |
+}; |
+ |
+#endif // CHROME_BROWSER_BLOCKED_PLUGIN_MANAGER_H_ |