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

Side by Side Diff: content/browser/renderer_host/render_message_filter.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor to use ContentBrowserClient. Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 net::CompletionCallbackImpl<DoomEntriesHelper> callback_; 272 net::CompletionCallbackImpl<DoomEntriesHelper> callback_;
273 ClearCacheCompletion* user_callback_; 273 ClearCacheCompletion* user_callback_;
274 }; 274 };
275 275
276 } // namespace 276 } // namespace
277 277
278 RenderMessageFilter::RenderMessageFilter( 278 RenderMessageFilter::RenderMessageFilter(
279 int render_process_id, 279 int render_process_id,
280 PluginService* plugin_service, 280 PluginService* plugin_service,
281 Profile* profile, 281 Profile* profile,
282 URLRequestContextGetter* request_context,
282 RenderWidgetHelper* render_widget_helper) 283 RenderWidgetHelper* render_widget_helper)
283 : resource_dispatcher_host_(g_browser_process->resource_dispatcher_host()), 284 : resource_dispatcher_host_(g_browser_process->resource_dispatcher_host()),
284 plugin_service_(plugin_service), 285 plugin_service_(plugin_service),
285 profile_(profile), 286 profile_(profile),
286 content_settings_(profile->GetHostContentSettingsMap()), 287 content_settings_(profile->GetHostContentSettingsMap()),
287 ALLOW_THIS_IN_INITIALIZER_LIST(resolve_proxy_msg_helper_(this, NULL)), 288 ALLOW_THIS_IN_INITIALIZER_LIST(resolve_proxy_msg_helper_(this, NULL)),
289 request_context_(request_context),
288 extensions_request_context_(profile->GetRequestContextForExtensions()), 290 extensions_request_context_(profile->GetRequestContextForExtensions()),
289 render_widget_helper_(render_widget_helper), 291 render_widget_helper_(render_widget_helper),
290 notification_prefs_( 292 notification_prefs_(
291 profile->GetDesktopNotificationService()->prefs_cache()), 293 profile->GetDesktopNotificationService()->prefs_cache()),
292 host_zoom_map_(profile->GetHostZoomMap()), 294 host_zoom_map_(profile->GetHostZoomMap()),
293 off_the_record_(profile->IsOffTheRecord()), 295 off_the_record_(profile->IsOffTheRecord()),
294 webkit_context_(profile->GetWebKitContext()), 296 webkit_context_(profile->GetWebKitContext()),
295 render_process_id_(render_process_id) { 297 render_process_id_(render_process_id) {
296 request_context_ = profile_->GetRequestContext();
297 DCHECK(request_context_); 298 DCHECK(request_context_);
298 299
299 render_widget_helper_->Init(render_process_id_, resource_dispatcher_host_); 300 render_widget_helper_->Init(render_process_id_, resource_dispatcher_host_);
300 } 301 }
301 302
302 RenderMessageFilter::~RenderMessageFilter() { 303 RenderMessageFilter::~RenderMessageFilter() {
303 // This function should be called on the IO thread. 304 // This function should be called on the IO thread.
304 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 305 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
305 } 306 }
306 307
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 } 1362 }
1362 1363
1363 CookiesEnabledCompletion::~CookiesEnabledCompletion() {} 1364 CookiesEnabledCompletion::~CookiesEnabledCompletion() {}
1364 1365
1365 void CookiesEnabledCompletion::RunWithParams(const Tuple1<int>& params) { 1366 void CookiesEnabledCompletion::RunWithParams(const Tuple1<int>& params) {
1366 bool result = params.a != net::ERR_ACCESS_DENIED; 1367 bool result = params.a != net::ERR_ACCESS_DENIED;
1367 ViewHostMsg_CookiesEnabled::WriteReplyParams(reply_msg_, result); 1368 ViewHostMsg_CookiesEnabled::WriteReplyParams(reply_msg_, result);
1368 filter_->Send(reply_msg_); 1369 filter_->Send(reply_msg_);
1369 delete this; 1370 delete this;
1370 } 1371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698