| 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 #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 "chrome/browser/browsing_data_local_storage_helper.h" | 10 #include "chrome/browser/browsing_data_local_storage_helper.h" | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 38 void RunBeforeUnloadDialog(TabContents* tab_contents, | 38 void RunBeforeUnloadDialog(TabContents* tab_contents, | 
| 39                            const std::wstring& message_text, | 39                            const std::wstring& message_text, | 
| 40                            IPC::Message* reply_msg); | 40                            IPC::Message* reply_msg); | 
| 41 | 41 | 
| 42 // TODO(zelidrag): bug 32719, implement these modal dialogs on Linux and Mac. | 42 // TODO(zelidrag): bug 32719, implement these modal dialogs on Linux and Mac. | 
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) | 
| 44 // This will display a modal dialog box with cookie information asking | 44 // This will display a modal dialog box with cookie information asking | 
| 45 // user to accept or reject the cookie. The caller should pass |delegate| | 45 // user to accept or reject the cookie. The caller should pass |delegate| | 
| 46 // that will handle the reply from the dialog. | 46 // that will handle the reply from the dialog. | 
| 47 void RunCookiePrompt(TabContents* tab_contents, | 47 void RunCookiePrompt(TabContents* tab_contents, | 
| 48                      const std::string& host, | 48                      const GURL& url, | 
| 49                      const std::string& cookie_line, | 49                      const std::string& cookie_line, | 
| 50                      CookiePromptModalDialogDelegate* delegate); | 50                      CookiePromptModalDialogDelegate* delegate); | 
| 51 | 51 | 
| 52 // This will display a modal dialog box with local storage information asking | 52 // This will display a modal dialog box with local storage information asking | 
| 53 // user to accept or reject it. The caller should pass |delegate| | 53 // user to accept or reject it. The caller should pass |delegate| | 
| 54 // that will handle the reply from the dialog. | 54 // that will handle the reply from the dialog. | 
| 55 void RunLocalStoragePrompt( | 55 void RunLocalStoragePrompt( | 
| 56     TabContents* tab_contents, | 56     TabContents* tab_contents, | 
| 57     const BrowsingDataLocalStorageHelper::LocalStorageInfo& local_storage_info, | 57     const BrowsingDataLocalStorageHelper::LocalStorageInfo& local_storage_info, | 
| 58     CookiePromptModalDialogDelegate* delegate); | 58     CookiePromptModalDialogDelegate* delegate); | 
| 59 #endif | 59 #endif | 
| 60 | 60 | 
| 61 #endif  // CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_ | 61 #endif  // CHROME_BROWSER_MESSAGE_BOX_HANDLER_H_ | 
| 62 | 62 | 
| OLD | NEW | 
|---|