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

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

Issue 11488009: Add content settings page action for Pepper broker authorization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" 10 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 12
13 class HostContentSettingsMap; 13 class HostContentSettingsMap;
14 class InfoBarService; 14 class InfoBarService;
15 class TabSpecificContentSettings;
15 16
16 namespace content { 17 namespace content {
17 class WebContents; 18 class WebContents;
18 } 19 }
19 20
20 // Shows an infobar that asks the user whether a Pepper plug-in is allowed 21 // Shows an infobar that asks the user whether a Pepper plug-in is allowed
21 // to connect to its (privileged) broker. The user decision is made "sticky" 22 // to connect to its (privileged) broker. The user decision is made "sticky"
22 // by storing a content setting for the site. 23 // by storing a content setting for the site.
23 class PepperBrokerInfoBarDelegate : public ConfirmInfoBarDelegate { 24 class PepperBrokerInfoBarDelegate : public ConfirmInfoBarDelegate {
24 public: 25 public:
(...skipping 16 matching lines...) Expand all
41 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 42 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
42 virtual gfx::Image* GetIcon() const OVERRIDE; 43 virtual gfx::Image* GetIcon() const OVERRIDE;
43 44
44 private: 45 private:
45 PepperBrokerInfoBarDelegate( 46 PepperBrokerInfoBarDelegate(
46 InfoBarService* infobar_service, 47 InfoBarService* infobar_service,
47 const GURL& url, 48 const GURL& url,
48 const FilePath& plugin_path, 49 const FilePath& plugin_path,
49 const std::string& languages, 50 const std::string& languages,
50 HostContentSettingsMap* content_settings, 51 HostContentSettingsMap* content_settings,
52 TabSpecificContentSettings* tab_content_settings,
51 const base::Callback<void(bool)>& callback); 53 const base::Callback<void(bool)>& callback);
52 virtual ~PepperBrokerInfoBarDelegate(); 54 virtual ~PepperBrokerInfoBarDelegate();
53 55
54 void DispatchCallback(bool result); 56 void DispatchCallback(bool result);
55 57
56 const GURL url_; 58 const GURL url_;
57 const FilePath plugin_path_; 59 const FilePath plugin_path_;
58 const std::string languages_; 60 const std::string languages_;
59 HostContentSettingsMap* content_settings_; 61 HostContentSettingsMap* content_settings_;
62 TabSpecificContentSettings* tab_content_settings_;
60 base::Callback<void(bool)> callback_; 63 base::Callback<void(bool)> callback_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate); 65 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate);
63 }; 66 };
64 67
65 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 68 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/tab_specific_content_settings.cc ('k') | chrome/browser/pepper_broker_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698