| 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/common/content_settings.h" | 12 #include "chrome/common/content_settings.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 | 14 |
| 15 class GeolocationContentSettingsMap; | |
| 16 class Profile; | 15 class Profile; |
| 17 | 16 |
| 18 namespace content { | 17 namespace content { |
| 19 struct LoadCommittedDetails; | 18 struct LoadCommittedDetails; |
| 20 } | 19 } |
| 21 | 20 |
| 22 // This class manages the geolocation state per tab, and provides information | 21 // This class manages the geolocation state per tab, and provides information |
| 23 // and presentation data about the geolocation usage. | 22 // and presentation data about the geolocation usage. |
| 24 class GeolocationSettingsState { | 23 class GeolocationSettingsState { |
| 25 public: | 24 public: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 std::string GURLToFormattedHost(const GURL& url) const; | 63 std::string GURLToFormattedHost(const GURL& url) const; |
| 65 | 64 |
| 66 Profile* profile_; | 65 Profile* profile_; |
| 67 StateMap state_map_; | 66 StateMap state_map_; |
| 68 GURL embedder_url_; | 67 GURL embedder_url_; |
| 69 | 68 |
| 70 DISALLOW_COPY_AND_ASSIGN(GeolocationSettingsState); | 69 DISALLOW_COPY_AND_ASSIGN(GeolocationSettingsState); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ | 72 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_SETTINGS_STATE_H_ |
| OLD | NEW |