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

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

Issue 10829452: Auto select the connection tab of the Website Settings UI in case of an https error or mixed content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build issues. Created 8 years, 3 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_WEBSITE_SETTINGS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
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 {
36 public: 36 public:
37 // The Website Settings UI contains several tabs. Each tab is assiciated with 37 // The Website Settings UI contains several tabs. Each tab is assiciated with
38 // a unique tab id. The enum |TabId| contains all the ids for the tabs. 38 // a unique tab id. The enum |TabId| contains all the ids for the tabs.
39 enum TabId { 39 enum TabId {
40 TAB_ID_PERMISSIONS, 40 TAB_ID_PERMISSIONS = 0,
41 TAB_ID_CONNECTION, 41 TAB_ID_CONNECTION,
42 NUM_TAB_IDS,
42 }; 43 };
43 44
44 // |CookieInfo| contains information about the cookies from a specific source. 45 // |CookieInfo| contains information about the cookies from a specific source.
45 // A source can for example be a specific origin or an entire domain. 46 // A source can for example be a specific origin or an entire domain.
46 struct CookieInfo { 47 struct CookieInfo {
47 CookieInfo(); 48 CookieInfo();
48 49
49 // String describing the cookie source. 50 // String describing the cookie source.
50 std::string cookie_source; 51 std::string cookie_source;
51 // The number of allowed cookies. 52 // The number of allowed cookies.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void SetPermissionInfo( 136 virtual void SetPermissionInfo(
136 const PermissionInfoList& permission_info_list) = 0; 137 const PermissionInfoList& permission_info_list) = 0;
137 138
138 // Sets site identity information. 139 // Sets site identity information.
139 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; 140 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0;
140 141
141 // Sets the first visited data. |first_visit| can be an empty string. 142 // Sets the first visited data. |first_visit| can be an empty string.
142 virtual void SetFirstVisit(const string16& first_visit) = 0; 143 virtual void SetFirstVisit(const string16& first_visit) = 0;
143 144
144 // Selects the tab with the given |tab_id|. 145 // Selects the tab with the given |tab_id|.
145 // TODO(markusheintz): Implement this on other platforms and make it a pure 146 virtual void SetSelectedTab(TabId tab_id) = 0;
146 // virtual function.
147 virtual void SetSelectedTab(TabId tab_id) {}
148 }; 147 };
149 148
150 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; 149 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList;
151 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; 150 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList;
152 151
153 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ 152 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698