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

Unified Diff: chrome/browser/message_box_handler.h

Issue 560030: Refactored out JS specific part of modal dialog stack into its own class, exp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/jsmessage_box_handler.cc ('k') | chrome/browser/message_box_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/message_box_handler.h
===================================================================
--- chrome/browser/message_box_handler.h (revision 38012)
+++ chrome/browser/message_box_handler.h (working copy)
@@ -2,13 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
-#define CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
+#ifndef CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
+#define CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
#include <string>
+#include "chrome/browser/browsing_data_local_storage_helper.h"
+#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
+#include "net/base/cookie_monster.h"
+class CookiePromptModalDialogDelegate;
class GURL;
class JavaScriptMessageBoxClient;
class TabContents;
@@ -35,4 +39,24 @@
const std::wstring& message_text,
IPC::Message* reply_msg);
-#endif // CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
+// TODO(zelidrag): bug 32719, implement these modal dialogs on Linux and Mac.
+#if defined(OS_WIN)
+// This will display a modal dialog box with cookie information asking
+// 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 GURL& url,
+ const std::string& cookie_line,
+ CookiePromptModalDialogDelegate* delegate);
+
+// This will display a modal dialog box with local storage information asking
+// user to accept or reject it. The caller should pass |delegate|
+// that will handle the reply from the dialog.
+void RunLocalStoragePrompt(
+ TabContents* tab_contents,
+ const BrowsingDataLocalStorageHelper::LocalStorageInfo& local_storage_info,
+ CookiePromptModalDialogDelegate* delegate);
+#endif
+
+#endif // CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
+
« no previous file with comments | « chrome/browser/jsmessage_box_handler.cc ('k') | chrome/browser/message_box_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698