Chromium Code Reviews| Index: chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h |
| diff --git a/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h b/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f11aeff1feed359eae2f10bec56f02ec659d3e7e |
| --- /dev/null |
| +++ b/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h |
| @@ -0,0 +1,48 @@ |
| +// Copyright 2016 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_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_ |
| + |
| +#include <stddef.h> |
| + |
| +#include <memory> |
| +#include <string> |
| +#include <utility> |
| +#include <vector> |
| + |
| +#include "base/logging.h" |
| +#include "base/macros.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "base/strings/string16.h" |
| +#include "build/build_config.h" |
| +#include "components/infobars/core/infobar_delegate.h" |
| + |
| +namespace content { |
| +class WebContents; |
| +} |
| + |
| +class SearchGeolocationDisclosureInfoBarDelegate |
| + : public infobars::InfoBarDelegate { |
| + public: |
| + ~SearchGeolocationDisclosureInfoBarDelegate() override; |
| + |
| + base::string16 GetMessageText() const; |
| + |
| + static void Create(content::WebContents* web_contents); |
|
gone
2016/11/04 23:21:48
newline here
benwells
2016/11/07 08:36:06
Done.
|
| + protected: |
| + SearchGeolocationDisclosureInfoBarDelegate(); |
| + |
| + private: |
| + // InfoBarDelegate: |
| + Type GetInfoBarType() const override; |
| + infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| + int GetIconId() const override; |
| + SearchGeolocationDisclosureInfoBarDelegate* |
| + AsSearchGeolocationDisclosureInfoBarDelegate() override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_ |