| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_WEBSITE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_WEBSITE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "chrome/browser/cancelable_request.h" | 11 #include "chrome/browser/cancelable_request.h" |
| 12 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 12 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 13 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/common/content_settings.h" | 14 #include "chrome/common/content_settings.h" |
| 15 #include "chrome/common/content_settings_types.h" | 15 #include "chrome/common/content_settings_types.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class CertStore; | 20 class CertStore; |
| 21 struct SSLStatus; | 21 struct SSLStatus; |
| 22 } | 22 } |
| 23 | 23 |
| 24 class HostContentSettingsMap; | 24 class HostContentSettingsMap; |
| 25 class Profile; | 25 class Profile; |
| 26 class TabContentsWrapper; | 26 class TabContents; |
| 27 typedef TabContents TabContentsWrapper; |
| 27 class WebsiteSettingsUI; | 28 class WebsiteSettingsUI; |
| 28 | 29 |
| 29 // The |WebsiteSettings| provides information about a website's permissions, | 30 // The |WebsiteSettings| provides information about a website's permissions, |
| 30 // connection state and its identity. It owns a UI that displays the | 31 // connection state and its identity. It owns a UI that displays the |
| 31 // information and allows users to change the permissions. |WebsiteSettings| | 32 // information and allows users to change the permissions. |WebsiteSettings| |
| 32 // objects must be created on the heap. They destroy themselves after the UI is | 33 // objects must be created on the heap. They destroy themselves after the UI is |
| 33 // closed. | 34 // closed. |
| 34 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { | 35 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { |
| 35 public: | 36 public: |
| 36 // Status of a connection to a website. | 37 // Status of a connection to a website. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // content settings (aka. site permissions). | 199 // content settings (aka. site permissions). |
| 199 HostContentSettingsMap* content_settings_; | 200 HostContentSettingsMap* content_settings_; |
| 200 | 201 |
| 201 // Used to request the number of page visits. | 202 // Used to request the number of page visits. |
| 202 CancelableRequestConsumer visit_count_request_consumer_; | 203 CancelableRequestConsumer visit_count_request_consumer_; |
| 203 | 204 |
| 204 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 205 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 #endif // CHROME_BROWSER_WEBSITE_SETTINGS_H_ | 208 #endif // CHROME_BROWSER_WEBSITE_SETTINGS_H_ |
| OLD | NEW |