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