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

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

Issue 9379016: (WIP) Website Settings GTK UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tmp 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
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_POPUP_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_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
26 // Interface for the Website Settings UI
27 class WebsiteSettingsUI {
28 public:
29 //
30 struct CookieInfo {
31 std::string text;
32 int allowed;
33 int blocked;
34 };
35
36 //
37 struct PermissionInfo {
38 ContentSettingsType type;
39 ContentSetting setting;
40 };
41
42 // Updates the UI.
43 virtual void Update() = 0;
44
45 };
46
47 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
48 };
49
50 class PermissionInfoList
51 : public std::vector<WebsiteSettingsUI::PermissionInfo> {
52 };
53
54 class WebsiteSettingsPopup {
55 public:
56 static void Show(gfx::NativeWindow parent,
57 Profile* profile,
58 TabContentsWrapper* tab_contents_wrapper,
59 const GURL& url,
60 const content::SSLStatus& ssl,
61 bool show_history);
62
63 WebsiteSettingsPopup();
64 virtual ~WebsiteSettingsPopup();
65
66 private:
67 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopup);
68 };
69
70 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.cc ('k') | chrome/browser/website_settings_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698