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

Side by Side Diff: chrome/browser/message_box_handler.h

Issue 651023: Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can ma... (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_ 5 #ifndef CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
6 #define CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_ 6 #define CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/browsing_data_local_storage_helper.h" 11 #include "chrome/browser/browsing_data_local_storage_helper.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "ipc/ipc_message.h" 13 #include "ipc/ipc_message.h"
14 #include "net/base/cookie_monster.h" 14 #include "net/base/cookie_monster.h"
15 15
16 class CookiePromptModalDialogDelegate; 16 class CookiePromptModalDialogDelegate;
17 class GURL; 17 class GURL;
18 class HostContentSettingsMap;
18 class JavaScriptMessageBoxClient; 19 class JavaScriptMessageBoxClient;
19 class TabContents; 20 class TabContents;
20 21
21 // Creates and runs a Javascript Message Box dialog. 22 // Creates and runs a Javascript Message Box dialog.
22 // The dialog type is specified within |dialog_flags|, the 23 // The dialog type is specified within |dialog_flags|, the
23 // default static display text is in |message_text| and if the dialog box is 24 // default static display text is in |message_text| and if the dialog box is
24 // a user input prompt() box, the default text for the text field is in 25 // a user input prompt() box, the default text for the text field is in
25 // |default_prompt_text|. The result of the operation is returned using 26 // |default_prompt_text|. The result of the operation is returned using
26 // |reply_msg|. 27 // |reply_msg|.
27 void RunJavascriptMessageBox(JavaScriptMessageBoxClient* client, 28 void RunJavascriptMessageBox(JavaScriptMessageBoxClient* client,
(...skipping 11 matching lines...) Expand all
39 void RunBeforeUnloadDialog(TabContents* tab_contents, 40 void RunBeforeUnloadDialog(TabContents* tab_contents,
40 const std::wstring& message_text, 41 const std::wstring& message_text,
41 IPC::Message* reply_msg); 42 IPC::Message* reply_msg);
42 43
43 // TODO(zelidrag): bug 32719, implement these modal dialogs on Linux and Mac. 44 // TODO(zelidrag): bug 32719, implement these modal dialogs on Linux and Mac.
44 #if defined(OS_WIN) 45 #if defined(OS_WIN)
45 // This will display a modal dialog box with cookie information asking 46 // This will display a modal dialog box with cookie information asking
46 // user to accept or reject the cookie. The caller should pass |delegate| 47 // user to accept or reject the cookie. The caller should pass |delegate|
47 // that will handle the reply from the dialog. 48 // that will handle the reply from the dialog.
48 void RunCookiePrompt(TabContents* tab_contents, 49 void RunCookiePrompt(TabContents* tab_contents,
50 HostContentSettingsMap* host_content_settings_map,
49 const GURL& origin, 51 const GURL& origin,
50 const std::string& cookie_line, 52 const std::string& cookie_line,
51 CookiePromptModalDialogDelegate* delegate); 53 CookiePromptModalDialogDelegate* delegate);
52 54
53 // This will display a modal dialog box with local storage information asking 55 // This will display a modal dialog box with local storage information asking
54 // user to accept or reject it. The caller should pass |delegate| 56 // user to accept or reject it. The caller should pass |delegate|
55 // that will handle the reply from the dialog. 57 // that will handle the reply from the dialog.
56 void RunLocalStoragePrompt( 58 void RunLocalStoragePrompt(
57 TabContents* tab_contents, 59 TabContents* tab_contents,
60 HostContentSettingsMap* host_content_settings_map,
58 const GURL& origin, 61 const GURL& origin,
59 const string16& key, 62 const string16& key,
60 const string16& value, 63 const string16& value,
61 CookiePromptModalDialogDelegate* delegate); 64 CookiePromptModalDialogDelegate* delegate);
62 65
63 // This will display a modal dialog box with the database name on every open 66 // This will display a modal dialog box with the database name on every open
64 // and ask the user to accept or reject it. The caller should pass |delegate| 67 // and ask the user to accept or reject it. The caller should pass |delegate|
65 // that will handle the reply from the dialog. 68 // that will handle the reply from the dialog.
66 void RunDatabasePrompt( 69 void RunDatabasePrompt(
67 TabContents* tab_contents, 70 TabContents* tab_contents,
71 HostContentSettingsMap* host_content_settings_map,
68 const GURL& origin, 72 const GURL& origin,
69 const string16& database_name, 73 const string16& database_name,
70 CookiePromptModalDialogDelegate* delegate); 74 CookiePromptModalDialogDelegate* delegate);
71 #endif 75 #endif
72 76
73 #endif // CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_ 77 #endif // CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_
74 78
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/dom_storage_permission_request.cc ('k') | chrome/browser/message_box_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698