diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:38:29 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:38:29 +0000 |
commit | 3868baed7247f13ac96e2f14f09121d43b59aab2 (patch) | |
tree | 46f15ba8f29d762b99a20c83b7011e3bb965396d /chrome/browser/cookie_modal_dialog.h | |
parent | 2b8e7ca060b5c7cae81676c233039c33c5ce080f (diff) | |
download | chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.zip chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.tar.gz chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.tar.bz2 |
Put up a prompt to create appcaches if the Content Settings indicate to do so. Done for windows and linux (sorry mac, you're out of luck). Also put in place a GenericInfoView class.
BUG=38362
TEST=manual and generic_info_view_unittest.cc
Review URL: http://codereview.chromium.org/1115005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookie_modal_dialog.h')
-rw-r--r-- | chrome/browser/cookie_modal_dialog.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/chrome/browser/cookie_modal_dialog.h b/chrome/browser/cookie_modal_dialog.h index 997dd7f..9a2ce77 100644 --- a/chrome/browser/cookie_modal_dialog.h +++ b/chrome/browser/cookie_modal_dialog.h @@ -31,8 +31,8 @@ class CookiePromptModalDialog : public AppModalDialog { enum DialogType { DIALOG_TYPE_COOKIE = 0, DIALOG_TYPE_LOCAL_STORAGE, - DIALOG_TYPE_DATABASE - // TODO(michaeln): AppCache + DIALOG_TYPE_DATABASE, + DIALOG_TYPE_APPCACHE }; // A union of data necessary to determine the type of message box to @@ -53,6 +53,10 @@ class CookiePromptModalDialog : public AppModalDialog { const GURL& origin, const string16& database_name, CookiePromptModalDialogDelegate* delegate); + CookiePromptModalDialog(TabContents* tab_contents, + HostContentSettingsMap* host_content_settings_map, + const GURL& appcache_manifest_url, + CookiePromptModalDialogDelegate* delegate); virtual ~CookiePromptModalDialog(); static void RegisterPrefs(PrefService* prefs); @@ -76,6 +80,7 @@ class CookiePromptModalDialog : public AppModalDialog { const string16& local_storage_key() const { return local_storage_key_; } const string16& local_storage_value() const { return local_storage_value_; } const string16& database_name() const { return database_name_; } + const GURL& appcache_manifest_url() const { return appcache_manifest_url_; } TabContents* tab_contents() const { return tab_contents_; } // Implement CookiePromptModalDialogDelegate. @@ -102,19 +107,16 @@ class CookiePromptModalDialog : public AppModalDialog { const DialogType dialog_type_; // The origin connected to this request. - GURL origin_; + const GURL origin_; - // Cookie to display. + // Which data members are relevant depends on the dialog_type. const std::string cookie_line_; - - // LocalStorage key/value. const string16 local_storage_key_; const string16 local_storage_value_; - - // Database name. const string16 database_name_; + const GURL appcache_manifest_url_; - // Delegate. The caller should provide one in order to receive results + // The caller should provide a delegate in order to receive results // from this delegate. Any time after calling one of these methods, the // delegate could be deleted CookiePromptModalDialogDelegate* delegate_; |