Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: chrome/browser/ui/website_settings_ui.h

Issue 10440092: Remove any platform specific code from the chrome/browser/website_settings.* . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 namespace content { 25 namespace content {
26 struct SSLStatus; 26 struct SSLStatus;
27 } 27 }
28 28
29 // The class |WebsiteSettingsUI| specifies the platform independent 29 // The class |WebsiteSettingsUI| specifies the platform independent
30 // interface of the website settings UI. The website settings UI displays 30 // interface of the website settings UI. The website settings UI displays
31 // information and controls for site specific data (local stored objects like 31 // information and controls for site specific data (local stored objects like
32 // cookies), site specific permissions (location, popup, plugin, etc. 32 // cookies), site specific permissions (location, popup, plugin, etc.
33 // permissions) and site specific information (identity, connection status, 33 // permissions) and site specific information (identity, connection status,
34 // etc.). 34 // etc.).
35 class WebsiteSettingsUI { 35 class WebsiteSettingsUI {
tfarina 2012/05/31 19:23:01 This is close to WebIntentPicker. You may have the
36 public: 36 public:
37 // |CookieInfo| contains information about the cookies from a specific source. 37 // |CookieInfo| contains information about the cookies from a specific source.
38 // A source can for example be a specific origin or an entire domain. 38 // A source can for example be a specific origin or an entire domain.
39 struct CookieInfo { 39 struct CookieInfo {
40 CookieInfo(); 40 CookieInfo();
41 41
42 // String describing the cookie source. 42 // String describing the cookie source.
43 std::string cookie_source; 43 std::string cookie_source;
44 // The number of allowed cookies. 44 // The number of allowed cookies.
45 int allowed; 45 int allowed;
(...skipping 30 matching lines...) Expand all
76 int cert_id; 76 int cert_id;
77 // Status of the site's connection. 77 // Status of the site's connection.
78 WebsiteSettings::SiteConnectionStatus connection_status; 78 WebsiteSettings::SiteConnectionStatus connection_status;
79 // Textual description of the site's connection status that is displayed to 79 // Textual description of the site's connection status that is displayed to
80 // the user. 80 // the user.
81 std::string connection_status_description; 81 std::string connection_status_description;
82 }; 82 };
83 83
84 virtual ~WebsiteSettingsUI(); 84 virtual ~WebsiteSettingsUI();
85 85
86 // Sets the |presenter| of the WebsiteSettingsUI that is responsible for
87 // setting the data to display in the UI.
88 virtual void SetPresenter(WebsiteSettings* presenter) = 0;
89
90 // Sets cookie information. 86 // Sets cookie information.
91 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; 87 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0;
92 88
93 // Sets permision information. 89 // Sets permision information.
94 virtual void SetPermissionInfo( 90 virtual void SetPermissionInfo(
95 const PermissionInfoList& permission_info_list) = 0; 91 const PermissionInfoList& permission_info_list) = 0;
96 92
97 // Sets site identity information. 93 // Sets site identity information.
98 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; 94 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0;
99 95
100 // Sets the first visited data. |first_visit| can be an empty string. 96 // Sets the first visited data. |first_visit| can be an empty string.
101 virtual void SetFirstVisit(const string16& first_visit) = 0; 97 virtual void SetFirstVisit(const string16& first_visit) = 0;
102 }; 98 };
103 99
104 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { 100 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
tfarina 2012/05/31 19:23:01 unrelated: this is very uncommon. I think it's the
markusheintz_ 2012/06/01 10:06:06 I copied this from the cookie monster. This is the
tfarina 2012/06/30 19:24:47 I just found something about this in Item 7 of Eff
105 }; 101 };
106 102
107 class PermissionInfoList 103 class PermissionInfoList
108 : public std::vector<WebsiteSettingsUI::PermissionInfo> { 104 : public std::vector<WebsiteSettingsUI::PermissionInfo> {
109 }; 105 };
110 106
111 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_ 107 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698