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 base::string16 GetMessageText() const; | |
32 | |
33 static void Create(content::WebContents* web_contents); | |
Peter Kasting
2016/11/08 01:17:51
Nit: I would tend to prefer this immediately after
benwells
2016/11/08 02:53:40
Done.
| |
34 | |
35 protected: | |
36 SearchGeolocationDisclosureInfoBarDelegate(); | |
Peter Kasting
2016/11/08 01:17:51
Why is this protected when there are no subclasses
benwells
2016/11/08 02:53:40
Made private.
| |
37 | |
38 private: | |
39 // InfoBarDelegate: | |
40 Type GetInfoBarType() const override; | |
41 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | |
42 int GetIconId() const override; | |
43 SearchGeolocationDisclosureInfoBarDelegate* | |
44 AsSearchGeolocationDisclosureInfoBarDelegate() override; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate); | |
47 }; | |
48 | |
49 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE _H_ | |
OLD | NEW |