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

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

Issue 9732007: Add GTK Website Settings UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move string changes out of this CL. Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
7 #pragma once
8
9 #include <string>
10 #include <vector>
11
12 #include "chrome/common/content_settings.h"
13 #include "chrome/common/content_settings_types.h"
14 #include "ui/gfx/native_widget_types.h"
15
16 class GURL;
17 class Profile;
18 class TabContentsWrapper;
19
20 namespace content {
21 struct SSLStatus;
22 }
23
24 class CookieInfoList;
25 class PermissionInfoList;
26
27
28 class WebsiteSettingsUIDelegate {
29 public:
30 virtual ~WebsiteSettingsUIDelegate() {}
31
32 // This method is called when the WebsiteSettingsUI is closed.
33 virtual void OnUIClosing() = 0;
34
35 // This method is called when ever a permission setting is changed.
36 virtual void OnSitePermissionChanged(ContentSettingsType type,
37 ContentSetting value) = 0;
38 };
39
40 // The UI for website settings displays information and controlls for site
41 // specific data (local stored objects like cookies), site specific permissions
42 // (location, popup, plugin, ... permissions) and site specific information
43 // (identity, connection status, ...). |WebsiteSettingsUI| specifies the
44 // platform independent interface of the UI.
45 class WebsiteSettingsUI {
46 public:
47 struct CookieInfo {
48 std::string text;
49 int allowed;
50 int blocked;
51 };
52
53 struct PermissionInfo {
54 ContentSettingsType type;
55 ContentSetting setting;
56 };
57
58 virtual ~WebsiteSettingsUI() {}
59
60 virtual void SetDelegate(WebsiteSettingsUIDelegate* delegate) = 0;
61
62 // Sets site information.
63 virtual void SetSiteInfo(const std::string site_info) = 0;
64
65 // Sets cookie information.
66 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0;
67
68 // Sets permision information.
69 virtual void SetPermissionInfo(
70 const PermissionInfoList& permission_info_list) = 0;
71 };
72
73 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
74 };
75
76 class PermissionInfoList
77 : public std::vector<WebsiteSettingsUI::PermissionInfo> {
78 };
79
80 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698