OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/cookie_modal_dialog.h" |
| 6 |
| 7 #include "chrome/browser/views/cookie_prompt_view.h" |
| 8 #include "googleurl/src/gurl.h" |
| 9 |
| 10 CookiePromptModalDialog::CookiePromptModalDialog( |
| 11 TabContents* tab_contents, |
| 12 const GURL& url, |
| 13 const std::string& cookie_line, |
| 14 CookiePromptModalDialogDelegate* delegate) |
| 15 : AppModalDialog(tab_contents, std::wstring()), |
| 16 url_(url), |
| 17 cookie_line_(cookie_line), |
| 18 cookie_ui_(true), |
| 19 delegate_(delegate) { |
| 20 } |
| 21 |
| 22 |
| 23 CookiePromptModalDialog::CookiePromptModalDialog( |
| 24 TabContents* tab_contents, |
| 25 const BrowsingDataLocalStorageHelper::LocalStorageInfo& storage_info, |
| 26 CookiePromptModalDialogDelegate* delegate) |
| 27 : AppModalDialog(tab_contents, std::wstring()), |
| 28 storage_info_(storage_info), |
| 29 cookie_ui_(false), |
| 30 delegate_(delegate) { |
| 31 } |
| 32 |
| 33 |
OLD | NEW |