| Index: chrome/browser/ui/website_settings_popup.h
|
| diff --git a/chrome/browser/ui/website_settings_popup.h b/chrome/browser/ui/website_settings_popup.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0f45efb0b5cd8c76a547ddd63702d8c255f8a787
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/website_settings_popup.h
|
| @@ -0,0 +1,70 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_H_
|
| +#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_H_
|
| +#pragma once
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "chrome/common/content_settings.h"
|
| +#include "chrome/common/content_settings_types.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
| +
|
| +class GURL;
|
| +class Profile;
|
| +class TabContentsWrapper;
|
| +
|
| +namespace content {
|
| +struct SSLStatus;
|
| +}
|
| +
|
| +class CookieInfoList;
|
| +
|
| +// Interface for the Website Settings UI
|
| +class WebsiteSettingsUI {
|
| + public:
|
| + //
|
| + struct CookieInfo {
|
| + std::string text;
|
| + int allowed;
|
| + int blocked;
|
| + };
|
| +
|
| + //
|
| + struct PermissionInfo {
|
| + ContentSettingsType type;
|
| + ContentSetting setting;
|
| + };
|
| +
|
| + // Updates the UI.
|
| + virtual void Update() = 0;
|
| +
|
| +};
|
| +
|
| +class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
|
| +};
|
| +
|
| +class PermissionInfoList
|
| + : public std::vector<WebsiteSettingsUI::PermissionInfo> {
|
| +};
|
| +
|
| +class WebsiteSettingsPopup {
|
| + public:
|
| + static void Show(gfx::NativeWindow parent,
|
| + Profile* profile,
|
| + TabContentsWrapper* tab_contents_wrapper,
|
| + const GURL& url,
|
| + const content::SSLStatus& ssl,
|
| + bool show_history);
|
| +
|
| + WebsiteSettingsPopup();
|
| + virtual ~WebsiteSettingsPopup();
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopup);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_H_
|
|
|