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_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ |
6 #define CHROME_BROWSER_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ | 6 #define CHROME_BROWSER_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ |
7 | 7 |
8 // Delegate for handling modal dialog results from CookiePromptModalDialog. | 8 // Delegate for handling modal dialog results from CookiePromptModalDialog. |
9 // The implementer of this MUST guarentee that from the time it's passed to the | 9 // The implementer of this MUST guarentee that from the time it's passed to the |
10 // CookieModalDialog until one of these methods are called it will not be | 10 // CookieModalDialog until one of these methods are called it will not be |
11 // deleted. | 11 // deleted. |
12 class CookiePromptModalDialogDelegate { | 12 class CookiePromptModalDialogDelegate { |
13 public: | 13 public: |
14 // Allow site data to be set. If |remember| is true, record this decision | 14 // Allow site data to be set. |
15 // for this host. | 15 virtual void AllowSiteData(bool session_expire) = 0; |
16 virtual void AllowSiteData(bool remember, bool session_expire) = 0; | |
17 | 16 |
18 // Block site data from being stored. If |remember| is true, record this | 17 // Block site data from being stored. |
19 // decision for this host. | 18 virtual void BlockSiteData() = 0; |
20 virtual void BlockSiteData(bool remember) = 0; | |
21 | 19 |
22 protected: | 20 protected: |
23 virtual ~CookiePromptModalDialogDelegate() {} | 21 virtual ~CookiePromptModalDialogDelegate() {} |
24 }; | 22 }; |
25 | 23 |
26 #endif // CHROME_BROWSER_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ | 24 #endif // CHROME_BROWSER_COOKIE_PROMPT_MODAL_DIALOG_DELEGATE_H_ |
27 | 25 |
OLD | NEW |