| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 12 #include "chrome/common/content_settings.h" | 13 #include "chrome/common/content_settings.h" |
| 13 #include "content/browser/tab_contents/navigation_controller.h" | |
| 14 | 14 |
| 15 class GeolocationContentSettingsMap; | 15 class GeolocationContentSettingsMap; |
| 16 | 16 |
| 17 // This class manages the geolocation state per tab, and provides information | 17 // This class manages the geolocation state per tab, and provides information |
| 18 // and presentation data about the geolocation usage. | 18 // and presentation data about the geolocation usage. |
| 19 class GeolocationSettingsState { | 19 class GeolocationSettingsState { |
| 20 public: | 20 public: |
| 21 explicit GeolocationSettingsState(Profile* profile); | 21 explicit GeolocationSettingsState(Profile* profile); |
| 22 virtual ~GeolocationSettingsState(); | 22 virtual ~GeolocationSettingsState(); |
| 23 | 23 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::string GURLToFormattedHost(const GURL& url) const; | 59 std::string GURLToFormattedHost(const GURL& url) const; |
| 60 | 60 |
| 61 Profile* profile_; | 61 Profile* profile_; |
| 62 StateMap state_map_; | 62 StateMap state_map_; |
| 63 GURL embedder_url_; | 63 GURL embedder_url_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(GeolocationSettingsState); | 65 DISALLOW_COPY_AND_ASSIGN(GeolocationSettingsState); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ | 68 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ |
| OLD | NEW |