| 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..e514a2f064ce9c76a78d232db818a55e1c15df8e
|
| --- /dev/null
|
| +++ b/chrome/browser/blocked_plugin_manager.h
|
| @@ -0,0 +1,37 @@
|
| +// 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 {
|
| + return BUTTON_OK;
|
| + }
|
| + 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:
|
| + TabContents* tab_contents_;
|
| + string16 name_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_BLOCKED_PLUGIN_MANAGER_H_
|
|
|