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_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include <memory> |
| 11 #include <string> |
| 12 #include <utility> |
| 13 #include <vector> |
| 14 |
| 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/strings/string16.h" |
| 19 #include "build/build_config.h" |
| 20 #include "components/infobars/core/infobar_delegate.h" |
| 21 |
| 22 namespace content { |
| 23 class WebContents; |
| 24 } |
| 25 |
| 26 class SearchGeolocationDisclosureInfoBarDelegate |
| 27 : public infobars::InfoBarDelegate { |
| 28 public: |
| 29 ~SearchGeolocationDisclosureInfoBarDelegate() override; |
| 30 |
| 31 // Create and show the infobar. |
| 32 static void Create(content::WebContents* web_contents); |
| 33 |
| 34 // Gets the message to display in the infobar. |
| 35 base::string16 GetMessageText() const; |
| 36 |
| 37 private: |
| 38 SearchGeolocationDisclosureInfoBarDelegate(); |
| 39 |
| 40 // InfoBarDelegate: |
| 41 Type GetInfoBarType() const override; |
| 42 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 43 int GetIconId() const override; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate); |
| 46 }; |
| 47 |
| 48 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE
_H_ |
OLD | NEW |