| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSURE_
TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSURE_
TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSURE_
TAB_HELPER_H_ | 6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSURE_
TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 SearchGeolocationDisclosureTabHelper>; | 45 SearchGeolocationDisclosureTabHelper>; |
| 46 | 46 |
| 47 bool ShouldShowDisclosureForUrl(const GURL& gurl); | 47 bool ShouldShowDisclosureForUrl(const GURL& gurl); |
| 48 | 48 |
| 49 // Record metrics, once per client, of the permission state before and after | 49 // Record metrics, once per client, of the permission state before and after |
| 50 // the disclosure has been shown. | 50 // the disclosure has been shown. |
| 51 void RecordPreDisclosureMetrics(const GURL& gurl); | 51 void RecordPreDisclosureMetrics(const GURL& gurl); |
| 52 void RecordPostDisclosureMetrics(const GURL& gurl); | 52 void RecordPostDisclosureMetrics(const GURL& gurl); |
| 53 Profile* GetProfile(); | 53 Profile* GetProfile(); |
| 54 | 54 |
| 55 bool consistent_geolocation_enabled_; | 55 bool consistent_geolocation_disclosure_enabled_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureTabHelper); | 57 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureTabHelper); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSU
RE_TAB_HELPER_H_ | 60 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_DISCLOSU
RE_TAB_HELPER_H_ |
| OLD | NEW |