Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ | |
|
Devlin
2017/02/01 23:05:00
startup probably isn't the right place for this.
samuong
2017/02/04 00:11:03
Even if ChromeDriver weren't loading an extension,
Devlin
2017/02/06 16:20:21
I don't feel very strongly, so I'll let a ui or ui
| |
| 6 #define CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "base/strings/string16.h" | |
| 11 #include "components/infobars/core/confirm_infobar_delegate.h" | |
| 12 #include "url/gurl.h" | |
| 13 | |
| 14 class Browser; | |
| 15 | |
| 16 class ChromeDriverInfoBarDelegate : public ConfirmInfoBarDelegate { | |
| 17 public: | |
| 18 static void Create(Browser* browser); | |
| 19 | |
| 20 private: | |
| 21 ChromeDriverInfoBarDelegate(); | |
| 22 ~ChromeDriverInfoBarDelegate() override; | |
| 23 | |
| 24 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | |
| 25 base::string16 GetMessageText() const override; | |
| 26 int GetButtons() const override; | |
| 27 base::string16 GetLinkText() const override; | |
| 28 GURL GetLinkURL() const override; | |
| 29 bool ShouldExpire(const NavigationDetails& details) const override; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeDriverInfoBarDelegate); | |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ | |
| OLD | NEW |