summaryrefslogtreecommitdiffstats
path: root/chrome/browser/message_box_handler.h
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 21:38:56 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 21:38:56 +0000
commit8f53962c5743fe97d0c0dd547b5e056a7a68c196 (patch)
treec680ea6d31cb9c518ac9e911e699569abb18b9f4 /chrome/browser/message_box_handler.h
parent0586b0e71d0b79511d8acbab2e7dedd41c830867 (diff)
downloadchromium_src-8f53962c5743fe97d0c0dd547b5e056a7a68c196.zip
chromium_src-8f53962c5743fe97d0c0dd547b5e056a7a68c196.tar.gz
chromium_src-8f53962c5743fe97d0c0dd547b5e056a7a68c196.tar.bz2
Make the setItem CONTENT_SETTING_ASK dialog more useful by showing the actual key and value. Unfortunately, we're going to have to abuse cookie strings for 4.1 Once this goes in, I'll add new strings for the actual fields.
This also cleans up the code some. TEST=Instead of size/modified information you'll see "name" and "content" in the dialog that comes up when asking whether to allow local storage. BUG=none Review URL: http://codereview.chromium.org/597061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/message_box_handler.h')
-rw-r--r--chrome/browser/message_box_handler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/message_box_handler.h b/chrome/browser/message_box_handler.h
index 04df1f8..7b16c35 100644
--- a/chrome/browser/message_box_handler.h
+++ b/chrome/browser/message_box_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/string16.h"
#include "chrome/browser/browsing_data_local_storage_helper.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
@@ -45,7 +46,7 @@ void RunBeforeUnloadDialog(TabContents* tab_contents,
// user to accept or reject the cookie. The caller should pass |delegate|
// that will handle the reply from the dialog.
void RunCookiePrompt(TabContents* tab_contents,
- const std::string& host,
+ const GURL& origin,
const std::string& cookie_line,
CookiePromptModalDialogDelegate* delegate);
@@ -54,7 +55,9 @@ void RunCookiePrompt(TabContents* tab_contents,
// that will handle the reply from the dialog.
void RunLocalStoragePrompt(
TabContents* tab_contents,
- const BrowsingDataLocalStorageHelper::LocalStorageInfo& local_storage_info,
+ const GURL& origin,
+ const string16& key,
+ const string16& value,
CookiePromptModalDialogDelegate* delegate);
#endif