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

Side by Side Diff: chrome/browser/in_process_webkit/dom_storage_area.cc

Issue 2858018: Add a "session only" policy to the content settings. (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/browser/cookie_modal_dialog.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/in_process_webkit/dom_storage_area.h" 5 #include "chrome/browser/in_process_webkit/dom_storage_area.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "chrome/browser/chrome_thread.h" 10 #include "chrome/browser/chrome_thread.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 host_content_settings_map_); 106 host_content_settings_map_);
107 ChromeThread::PostTask( 107 ChromeThread::PostTask(
108 ChromeThread::UI, FROM_HERE, 108 ChromeThread::UI, FROM_HERE,
109 NewRunnableFunction(&DOMStoragePermissionRequest::PromptUser, 109 NewRunnableFunction(&DOMStoragePermissionRequest::PromptUser,
110 &request)); 110 &request));
111 // Tell the renderer that it needs to run a nested message loop. 111 // Tell the renderer that it needs to run a nested message loop.
112 sender->Send(new ViewMsg_SignalCookiePromptEvent()); 112 sender->Send(new ViewMsg_SignalCookiePromptEvent());
113 content_setting = request.WaitOnResponse(); 113 content_setting = request.WaitOnResponse();
114 } 114 }
115 115
116 if (content_setting == CONTENT_SETTING_ALLOW) 116 return (content_setting != CONTENT_SETTING_BLOCK);
117 return true;
118 DCHECK(content_setting == CONTENT_SETTING_BLOCK);
119 return false;
120 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/cookie_modal_dialog.cc ('k') | chrome/browser/net/chrome_cookie_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698