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

Side by Side Diff: chrome/browser/blocked_plugin_manager.h

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_BROWSER_BLOCKED_PLUGIN_MANAGER_H_
6 #define CHROME_BROWSER_BLOCKED_PLUGIN_MANAGER_H_
7
8 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
9 #include "chrome/browser/tab_contents/infobar_delegate.h"
10
11 class TabContents;
12
13 class BlockedPluginManager : public RenderViewHostDelegate::BlockedPlugin,
14 public ConfirmInfoBarDelegate {
15 public:
16 explicit BlockedPluginManager(TabContents* tab_contents);
17
18 virtual void OnNonSandboxedPluginBlocked(const string16& name);
19 virtual void OnBlockedPluginLoaded();
20
21 // ConfirmInfoBarDelegate methods
22 virtual int GetButtons() const {
23 return BUTTON_OK;
24 }
25 virtual std::wstring GetButtonLabel(InfoBarButton button) const;
26 virtual std::wstring GetMessageText() const;
27 virtual std::wstring GetLinkText();
28 virtual SkBitmap* GetIcon() const;
29 virtual bool Accept();
30 virtual bool LinkClicked(WindowOpenDisposition disposition);
31
32 private:
33 TabContents* tab_contents_;
34 string16 name_;
35 };
36
37 #endif // CHROME_BROWSER_BLOCKED_PLUGIN_MANAGER_H_
OLDNEW
« 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