Chromium Code Reviews| Index: chrome/browser/ui/startup/chromedriver_infobar_delegate.h |
| diff --git a/chrome/browser/ui/startup/chromedriver_infobar_delegate.h b/chrome/browser/ui/startup/chromedriver_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a0ba373b27a7fe3113f82a6840f2d2a7d026712f |
| --- /dev/null |
| +++ b/chrome/browser/ui/startup/chromedriver_infobar_delegate.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/macros.h" |
| +#include "base/strings/string16.h" |
| +#include "components/infobars/core/confirm_infobar_delegate.h" |
| +#include "url/gurl.h" |
| + |
| +class Browser; |
| + |
| +class ChromeDriverInfoBarDelegate : public ConfirmInfoBarDelegate { |
|
Devlin
2017/02/06 16:20:21
We should add a class-level comment here, e.g.
//
samuong
2017/02/07 19:11:09
Done.
|
| + public: |
| + static void Create(Browser* browser); |
| + |
| + private: |
| + ChromeDriverInfoBarDelegate(); |
| + ~ChromeDriverInfoBarDelegate() override; |
| + |
| + infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| + base::string16 GetMessageText() const override; |
| + int GetButtons() const override; |
| + base::string16 GetLinkText() const override; |
| + GURL GetLinkURL() const override; |
| + bool ShouldExpire(const NavigationDetails& details) const override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ChromeDriverInfoBarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_STARTUP_CHROMEDRIVER_INFOBAR_DELEGATE_H_ |