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_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/infobars/core/confirm_infobar_delegate.h" | 9 #include "components/infobars/core/confirm_infobar_delegate.h" |
10 | 10 |
11 class NaClInfoBarDelegate : public ConfirmInfoBarDelegate { | 11 class NaClInfoBarDelegate : public ConfirmInfoBarDelegate { |
12 public: | 12 public: |
13 // Creates a NaCl infobar and delegate and adds the infobar to the infobar | 13 // Creates a NaCl infobar and delegate and adds the infobar to the infobar |
14 // service corresponding to the given render process and view IDs. | 14 // service corresponding to the given render process and view IDs. |
15 static void Create(int render_process_id, int render_view_id); | 15 static void Create(int render_process_id, int render_view_id); |
16 | 16 |
17 private: | 17 private: |
18 NaClInfoBarDelegate(); | 18 NaClInfoBarDelegate(); |
19 ~NaClInfoBarDelegate() override; | 19 ~NaClInfoBarDelegate() override; |
20 | 20 |
| 21 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
21 base::string16 GetMessageText() const override; | 22 base::string16 GetMessageText() const override; |
22 int GetButtons() const override; | 23 int GetButtons() const override; |
23 base::string16 GetLinkText() const override; | 24 base::string16 GetLinkText() const override; |
24 GURL GetLinkURL() const override; | 25 GURL GetLinkURL() const override; |
25 | 26 |
26 DISALLOW_COPY_AND_ASSIGN(NaClInfoBarDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(NaClInfoBarDelegate); |
27 }; | 28 }; |
28 | 29 |
29 #endif // CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ | 30 #endif // CHROME_BROWSER_NACL_HOST_NACL_INFOBAR_DELEGATE_H_ |
OLD | NEW |