Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/browser/cookie_prompt_modal_dialog_delegate.h

Issue 651023: Pass in the HostContentSettingsMap to the CookieModalDialog so IsValid can ma... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/browser/cookie_modal_dialog.cc ('k') | chrome/browser/in_process_webkit/dom_storage_permission_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698