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

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

Issue 10163002: Add tabs UI to WebsiteSettingsUI (GTK only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Again: Removing UI string changes from this CL. Created 8 years, 8 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>
11 11
12 #include "chrome/browser/website_settings.h"
12 #include "chrome/common/content_settings.h" 13 #include "chrome/common/content_settings.h"
13 #include "chrome/common/content_settings_types.h" 14 #include "chrome/common/content_settings_types.h"
14 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
15 16
16 class CookieInfoList; 17 class CookieInfoList;
17 class GURL; 18 class GURL;
18 class PermissionInfoList; 19 class PermissionInfoList;
19 class Profile; 20 class Profile;
20 class TabContentsWrapper; 21 class TabContentsWrapper;
21 class WebsiteSettings; 22 class WebsiteSettings;
(...skipping 29 matching lines...) Expand all
51 PermissionInfo(); 52 PermissionInfo();
52 53
53 // Site permission |type|. 54 // Site permission |type|.
54 ContentSettingsType type; 55 ContentSettingsType type;
55 // The current value for the permission |type| (e.g. ALLOW or BLOCK). 56 // The current value for the permission |type| (e.g. ALLOW or BLOCK).
56 ContentSetting setting; 57 ContentSetting setting;
57 // The global default settings for this permission |type|. 58 // The global default settings for this permission |type|.
58 ContentSetting default_setting; 59 ContentSetting default_setting;
59 }; 60 };
60 61
62 // |IdentityInfo| contains information about the site's identity and
63 // connection.
64 struct IdentityInfo {
65 IdentityInfo();
66
67 // The site's identity.
68 std::string site_identity;
69 // Status of the site's connection.
70 WebsiteSettings::SiteConnectionStatus connection_status;
71 // Textual description of the site's connection status that is displayed to
72 // the user.
73 std::string connection_status_description;
wtc 2012/04/23 22:01:23 Nit: move these two connnection-related members to
markusheintz_ 2012/04/24 08:49:41 Done.
74 // Status of the site's identity.
75 WebsiteSettings::SiteIdentityStatus identity_status;
76 // Textual description of the site's identity status that is displayed to
77 // the user.
78 std::string identity_status_description;
79 };
80
61 virtual ~WebsiteSettingsUI(); 81 virtual ~WebsiteSettingsUI();
62 82
63 // Sets the |presenter| of the WebsiteSettingsUI that is responsible for 83 // Sets the |presenter| of the WebsiteSettingsUI that is responsible for
64 // setting the data to display in the UI. 84 // setting the data to display in the UI.
65 virtual void SetPresenter(WebsiteSettings* presenter) = 0; 85 virtual void SetPresenter(WebsiteSettings* presenter) = 0;
66 86
67 // Sets site information.
68 virtual void SetSiteInfo(const std::string& site_info) = 0;
69
70 // Sets cookie information. 87 // Sets cookie information.
71 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; 88 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0;
72 89
73 // Sets permision information. 90 // Sets permision information.
74 virtual void SetPermissionInfo( 91 virtual void SetPermissionInfo(
75 const PermissionInfoList& permission_info_list) = 0; 92 const PermissionInfoList& permission_info_list) = 0;
93
94 // Sets site identity information.
95 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0;
76 }; 96 };
77 97
78 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { 98 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
79 }; 99 };
80 100
81 class PermissionInfoList 101 class PermissionInfoList
82 : public std::vector<WebsiteSettingsUI::PermissionInfo> { 102 : public std::vector<WebsiteSettingsUI::PermissionInfo> {
83 }; 103 };
84 104
85 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_ 105 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698