OLD | NEW |
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 #include "chrome/browser/message_box_handler.h" | 5 #include "chrome/browser/message_box_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/message_box_flags.h" | 8 #include "app/message_box_flags.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/app_modal_dialog_queue.h" | 10 #include "chrome/browser/app_modal_dialog_queue.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 Singleton<AppModalDialogQueue>()->AddDialog( | 63 Singleton<AppModalDialogQueue>()->AddDialog( |
64 new CookiePromptModalDialog(tab_contents, host_content_settings_map, | 64 new CookiePromptModalDialog(tab_contents, host_content_settings_map, |
65 origin, key, value, delegate)); | 65 origin, key, value, delegate)); |
66 } | 66 } |
67 | 67 |
68 void RunDatabasePrompt( | 68 void RunDatabasePrompt( |
69 TabContents* tab_contents, | 69 TabContents* tab_contents, |
70 HostContentSettingsMap* host_content_settings_map, | 70 HostContentSettingsMap* host_content_settings_map, |
71 const GURL& origin, | 71 const GURL& origin, |
72 const string16& database_name, | 72 const string16& database_name, |
| 73 const string16& display_name, |
| 74 unsigned long estimated_size, |
73 CookiePromptModalDialogDelegate* delegate) { | 75 CookiePromptModalDialogDelegate* delegate) { |
74 Singleton<AppModalDialogQueue>()->AddDialog( | 76 Singleton<AppModalDialogQueue>()->AddDialog( |
75 new CookiePromptModalDialog(tab_contents, host_content_settings_map, | 77 new CookiePromptModalDialog(tab_contents, host_content_settings_map, |
76 origin, database_name, delegate)); | 78 origin, database_name, display_name, |
| 79 estimated_size, delegate)); |
77 } | 80 } |
78 | 81 |
79 void RunAppCachePrompt( | 82 void RunAppCachePrompt( |
80 TabContents* tab_contents, | 83 TabContents* tab_contents, |
81 HostContentSettingsMap* host_content_settings_map, | 84 HostContentSettingsMap* host_content_settings_map, |
82 const GURL& manifest_url, | 85 const GURL& manifest_url, |
83 CookiePromptModalDialogDelegate* delegate) { | 86 CookiePromptModalDialogDelegate* delegate) { |
84 Singleton<AppModalDialogQueue>()->AddDialog( | 87 Singleton<AppModalDialogQueue>()->AddDialog( |
85 new CookiePromptModalDialog(tab_contents, host_content_settings_map, | 88 new CookiePromptModalDialog(tab_contents, host_content_settings_map, |
86 manifest_url, delegate)); | 89 manifest_url, delegate)); |
87 } | 90 } |
OLD | NEW |