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

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

Issue 2111623003: Reland of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize |read_handler| Created 4 years, 5 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 | « no previous file | content/common/resource_messages.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "components/policy/core/common/cloud/policy_header_service.h" 74 #include "components/policy/core/common/cloud/policy_header_service.h"
75 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 75 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
76 #include "components/prefs/pref_service.h" 76 #include "components/prefs/pref_service.h"
77 #include "components/signin/core/common/signin_pref_names.h" 77 #include "components/signin/core/common/signin_pref_names.h"
78 #include "components/sync_driver/pref_names.h" 78 #include "components/sync_driver/pref_names.h"
79 #include "components/url_formatter/url_fixer.h" 79 #include "components/url_formatter/url_fixer.h"
80 #include "content/public/browser/browser_thread.h" 80 #include "content/public/browser/browser_thread.h"
81 #include "content/public/browser/host_zoom_map.h" 81 #include "content/public/browser/host_zoom_map.h"
82 #include "content/public/browser/notification_service.h" 82 #include "content/public/browser/notification_service.h"
83 #include "content/public/browser/resource_context.h" 83 #include "content/public/browser/resource_context.h"
84 #include "content/public/common/content_switches.h"
84 #include "net/base/keygen_handler.h" 85 #include "net/base/keygen_handler.h"
85 #include "net/cert/cert_verifier.h" 86 #include "net/cert/cert_verifier.h"
86 #include "net/cert/ct_log_verifier.h" 87 #include "net/cert/ct_log_verifier.h"
87 #include "net/cert/multi_log_ct_verifier.h" 88 #include "net/cert/multi_log_ct_verifier.h"
88 #include "net/cookies/canonical_cookie.h" 89 #include "net/cookies/canonical_cookie.h"
89 #include "net/http/http_network_session.h" 90 #include "net/http/http_network_session.h"
90 #include "net/http/http_transaction_factory.h" 91 #include "net/http/http_transaction_factory.h"
91 #include "net/http/http_util.h" 92 #include "net/http/http_util.h"
92 #include "net/http/transport_security_persister.h" 93 #include "net/http/transport_security_persister.h"
93 #include "net/nqe/network_quality_estimator.h" 94 #include "net/nqe/network_quality_estimator.h"
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 IOThread::Globals* const io_thread_globals = io_thread->globals(); 1032 IOThread::Globals* const io_thread_globals = io_thread->globals();
1032 const base::CommandLine& command_line = 1033 const base::CommandLine& command_line =
1033 *base::CommandLine::ForCurrentProcess(); 1034 *base::CommandLine::ForCurrentProcess();
1034 1035
1035 // Create the common request contexts. 1036 // Create the common request contexts.
1036 main_request_context_.reset(new net::URLRequestContext()); 1037 main_request_context_.reset(new net::URLRequestContext());
1037 extensions_request_context_.reset(new net::URLRequestContext()); 1038 extensions_request_context_.reset(new net::URLRequestContext());
1038 1039
1039 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli); 1040 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli);
1040 1041
1042 // TODO(estark): Remove this once the Referrer-Policy header is no
1043 // longer an experimental feature. https://crbug.com/619228
1044 main_request_context_->set_enable_referrer_policy_header(
1045 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures));
1046
1041 std::unique_ptr<ChromeNetworkDelegate> network_delegate( 1047 std::unique_ptr<ChromeNetworkDelegate> network_delegate(
1042 new ChromeNetworkDelegate( 1048 new ChromeNetworkDelegate(
1043 #if defined(ENABLE_EXTENSIONS) 1049 #if defined(ENABLE_EXTENSIONS)
1044 io_thread_globals->extension_event_router_forwarder.get(), 1050 io_thread_globals->extension_event_router_forwarder.get(),
1045 #else 1051 #else
1046 NULL, 1052 NULL,
1047 #endif 1053 #endif
1048 &enable_referrers_, io_thread->GetMetricsDataUseForwarder())); 1054 &enable_referrers_, io_thread->GetMetricsDataUseForwarder()));
1049 #if defined(ENABLE_EXTENSIONS) 1055 #if defined(ENABLE_EXTENSIONS)
1050 network_delegate->set_extension_info_map( 1056 network_delegate->set_extension_info_map(
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 void ProfileIOData::SetCookieSettingsForTesting( 1375 void ProfileIOData::SetCookieSettingsForTesting(
1370 content_settings::CookieSettings* cookie_settings) { 1376 content_settings::CookieSettings* cookie_settings) {
1371 DCHECK(!cookie_settings_.get()); 1377 DCHECK(!cookie_settings_.get());
1372 cookie_settings_ = cookie_settings; 1378 cookie_settings_ = cookie_settings;
1373 } 1379 }
1374 1380
1375 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1381 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1376 const GURL& url) const { 1382 const GURL& url) const {
1377 return url_blacklist_manager_->GetURLBlacklistState(url); 1383 return url_blacklist_manager_->GetURLBlacklistState(url);
1378 } 1384 }
OLDNEW
« no previous file with comments | « no previous file | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698