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

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: sync Created 8 years 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 InfoBarTabHelper; 14 class InfoBarTabHelper;
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 15 matching lines...) Expand all
40 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 41 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
41 virtual gfx::Image* GetIcon() const OVERRIDE; 42 virtual gfx::Image* GetIcon() const OVERRIDE;
42 43
43 private: 44 private:
44 PepperBrokerInfoBarDelegate( 45 PepperBrokerInfoBarDelegate(
45 InfoBarTabHelper* helper, 46 InfoBarTabHelper* helper,
46 const GURL& url, 47 const GURL& url,
47 const FilePath& plugin_path, 48 const FilePath& plugin_path,
48 const std::string& languages, 49 const std::string& languages,
49 HostContentSettingsMap* content_settings, 50 HostContentSettingsMap* content_settings,
51 TabSpecificContentSettings* tab_content_settings,
50 const base::Callback<void(bool)>& callback); 52 const base::Callback<void(bool)>& callback);
51 53
52 void DispatchCallback(bool result); 54 void DispatchCallback(bool result);
53 55
54 const GURL url_; 56 const GURL url_;
55 const FilePath plugin_path_; 57 const FilePath plugin_path_;
56 const std::string languages_; 58 const std::string languages_;
57 HostContentSettingsMap* content_settings_; 59 HostContentSettingsMap* content_settings_;
60 TabSpecificContentSettings* tab_content_settings_;
58 base::Callback<void(bool)> callback_; 61 base::Callback<void(bool)> callback_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate); 63 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate);
61 }; 64 };
62 65
63 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 66 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698