| OLD | NEW |
| 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/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 10 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 InfoBarService* infobar_service, | 37 InfoBarService* infobar_service, |
| 38 const GURL& url, | 38 const GURL& url, |
| 39 const base::FilePath& plugin_path, | 39 const base::FilePath& plugin_path, |
| 40 const std::string& languages, | 40 const std::string& languages, |
| 41 HostContentSettingsMap* content_settings, | 41 HostContentSettingsMap* content_settings, |
| 42 TabSpecificContentSettings* tab_content_settings, | 42 TabSpecificContentSettings* tab_content_settings, |
| 43 const base::Callback<void(bool)>& callback); | 43 const base::Callback<void(bool)>& callback); |
| 44 virtual ~PepperBrokerInfoBarDelegate(); | 44 virtual ~PepperBrokerInfoBarDelegate(); |
| 45 | 45 |
| 46 // ConfirmInfoBarDelegate: | 46 // ConfirmInfoBarDelegate: |
| 47 virtual gfx::Image* GetIcon() const OVERRIDE; | 47 virtual int GetIconID() const OVERRIDE; |
| 48 virtual string16 GetMessageText() const OVERRIDE; | 48 virtual string16 GetMessageText() const OVERRIDE; |
| 49 virtual int GetButtons() const OVERRIDE; | 49 virtual int GetButtons() const OVERRIDE; |
| 50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
| 51 virtual bool Accept() OVERRIDE; | 51 virtual bool Accept() OVERRIDE; |
| 52 virtual bool Cancel() OVERRIDE; | 52 virtual bool Cancel() OVERRIDE; |
| 53 virtual string16 GetLinkText() const OVERRIDE; | 53 virtual string16 GetLinkText() const OVERRIDE; |
| 54 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; | 54 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
| 55 | 55 |
| 56 void DispatchCallback(bool result); | 56 void DispatchCallback(bool result); |
| 57 | 57 |
| 58 const GURL url_; | 58 const GURL url_; |
| 59 const base::FilePath plugin_path_; | 59 const base::FilePath plugin_path_; |
| 60 const std::string languages_; | 60 const std::string languages_; |
| 61 HostContentSettingsMap* content_settings_; | 61 HostContentSettingsMap* content_settings_; |
| 62 TabSpecificContentSettings* tab_content_settings_; | 62 TabSpecificContentSettings* tab_content_settings_; |
| 63 base::Callback<void(bool)> callback_; | 63 base::Callback<void(bool)> callback_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate); | 65 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ | 68 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ |
| OLD | NEW |