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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix grammar Created 9 years, 8 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 "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 media_request_context_->set_chrome_cookie_policy(cookie_policy); 182 media_request_context_->set_chrome_cookie_policy(cookie_policy);
183 extensions_request_context_->set_chrome_cookie_policy(cookie_policy); 183 extensions_request_context_->set_chrome_cookie_policy(cookie_policy);
184 184
185 main_request_context_->set_net_log(lazy_params_->io_thread->net_log()); 185 main_request_context_->set_net_log(lazy_params_->io_thread->net_log());
186 media_request_context_->set_net_log(lazy_params_->io_thread->net_log()); 186 media_request_context_->set_net_log(lazy_params_->io_thread->net_log());
187 extensions_request_context_->set_net_log(lazy_params_->io_thread->net_log()); 187 extensions_request_context_->set_net_log(lazy_params_->io_thread->net_log());
188 188
189 network_delegate_.reset(new ChromeNetworkDelegate( 189 network_delegate_.reset(new ChromeNetworkDelegate(
190 io_thread_globals->extension_event_router_forwarder.get(), 190 io_thread_globals->extension_event_router_forwarder.get(),
191 profile_params.profile_id, 191 profile_params.profile_id,
192 lazy_params_->profile_params.enable_referrers.release(),
192 profile_params.protocol_handler_registry)); 193 profile_params.protocol_handler_registry));
193 main_request_context_->set_network_delegate(network_delegate_.get()); 194 main_request_context_->set_network_delegate(network_delegate_.get());
194 media_request_context_->set_network_delegate(network_delegate_.get()); 195 media_request_context_->set_network_delegate(network_delegate_.get());
195 196
196 main_request_context_->set_host_resolver( 197 main_request_context_->set_host_resolver(
197 io_thread_globals->host_resolver.get()); 198 io_thread_globals->host_resolver.get());
198 media_request_context_->set_host_resolver( 199 media_request_context_->set_host_resolver(
199 io_thread_globals->host_resolver.get()); 200 io_thread_globals->host_resolver.get());
200 main_request_context_->set_cert_verifier( 201 main_request_context_->set_cert_verifier(
201 io_thread_globals->cert_verifier.get()); 202 io_thread_globals->cert_verifier.get());
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 ProfileImplIOData::AcquireIsolatedAppRequestContext( 397 ProfileImplIOData::AcquireIsolatedAppRequestContext(
397 scoped_refptr<ChromeURLRequestContext> main_context, 398 scoped_refptr<ChromeURLRequestContext> main_context,
398 const std::string& app_id) const { 399 const std::string& app_id) const {
399 // We create per-app contexts on demand, unlike the others above. 400 // We create per-app contexts on demand, unlike the others above.
400 scoped_refptr<RequestContext> app_request_context = 401 scoped_refptr<RequestContext> app_request_context =
401 InitializeAppRequestContext(main_context, app_id); 402 InitializeAppRequestContext(main_context, app_id);
402 DCHECK(app_request_context); 403 DCHECK(app_request_context);
403 app_request_context->set_profile_io_data(this); 404 app_request_context->set_profile_io_data(this);
404 return app_request_context; 405 return app_request_context;
405 } 406 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698