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

Unified Diff: chrome/browser/blocked_plugin_manager.h

Issue 3040034: Block non-sandboxed plugins. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fix indentation; sync Created 10 years, 4 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/blocked_plugin_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/blocked_plugin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698