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_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_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 TabContents; | |
27 typedef TabContents TabContentsWrapper; | |
28 class WebsiteSettingsUI; | 26 class WebsiteSettingsUI; |
29 | 27 |
30 // The |WebsiteSettings| provides information about a website's permissions, | 28 // The |WebsiteSettings| provides information about a website's permissions, |
31 // connection state and its identity. It owns a UI that displays the | 29 // connection state and its identity. It owns a UI that displays the |
32 // information and allows users to change the permissions. |WebsiteSettings| | 30 // information and allows users to change the permissions. |WebsiteSettings| |
33 // objects must be created on the heap. They destroy themselves after the UI is | 31 // objects must be created on the heap. They destroy themselves after the UI is |
34 // closed. | 32 // closed. |
35 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { | 33 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { |
36 public: | 34 public: |
37 // Status of a connection to a website. | 35 // Status of a connection to a website. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // content settings (aka. site permissions). | 179 // content settings (aka. site permissions). |
182 HostContentSettingsMap* content_settings_; | 180 HostContentSettingsMap* content_settings_; |
183 | 181 |
184 // Used to request the number of page visits. | 182 // Used to request the number of page visits. |
185 CancelableRequestConsumer visit_count_request_consumer_; | 183 CancelableRequestConsumer visit_count_request_consumer_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 185 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
188 }; | 186 }; |
189 | 187 |
190 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 188 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
OLD | NEW |