OLD | NEW |
(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_ |
OLD | NEW |