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

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

Issue 1260033005: Revert of Move net::FormatUrl and friends outside of //net and into //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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 <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "chrome/common/chrome_paths.h" 51 #include "chrome/common/chrome_paths.h"
52 #include "chrome/common/chrome_switches.h" 52 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/pref_names.h" 53 #include "chrome/common/pref_names.h"
54 #include "chrome/common/url_constants.h" 54 #include "chrome/common/url_constants.h"
55 #include "components/content_settings/core/browser/content_settings_provider.h" 55 #include "components/content_settings/core/browser/content_settings_provider.h"
56 #include "components/content_settings/core/browser/cookie_settings.h" 56 #include "components/content_settings/core/browser/cookie_settings.h"
57 #include "components/content_settings/core/browser/host_content_settings_map.h" 57 #include "components/content_settings/core/browser/host_content_settings_map.h"
58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
59 #include "components/dom_distiller/core/url_constants.h" 59 #include "components/dom_distiller/core/url_constants.h"
60 #include "components/sync_driver/pref_names.h" 60 #include "components/sync_driver/pref_names.h"
61 #include "components/url_formatter/url_fixer.h" 61 #include "components/url_fixer/url_fixer.h"
62 #include "content/public/browser/browser_thread.h" 62 #include "content/public/browser/browser_thread.h"
63 #include "content/public/browser/host_zoom_map.h" 63 #include "content/public/browser/host_zoom_map.h"
64 #include "content/public/browser/notification_service.h" 64 #include "content/public/browser/notification_service.h"
65 #include "content/public/browser/resource_context.h" 65 #include "content/public/browser/resource_context.h"
66 #include "net/base/keygen_handler.h" 66 #include "net/base/keygen_handler.h"
67 #include "net/cookies/canonical_cookie.h" 67 #include "net/cookies/canonical_cookie.h"
68 #include "net/http/http_transaction_factory.h" 68 #include "net/http/http_transaction_factory.h"
69 #include "net/http/http_util.h" 69 #include "net/http/http_util.h"
70 #include "net/http/transport_security_persister.h" 70 #include "net/http/transport_security_persister.h"
71 #include "net/proxy/proxy_config_service_fixed.h" 71 #include "net/proxy/proxy_config_service_fixed.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 cert_verifier_ = verifier.Pass(); 501 cert_verifier_ = verifier.Pass();
502 #endif 502 #endif
503 // The URLBlacklistManager has to be created on the UI thread to register 503 // The URLBlacklistManager has to be created on the UI thread to register
504 // observers of |pref_service|, and it also has to clean up on 504 // observers of |pref_service|, and it also has to clean up on
505 // ShutdownOnUIThread to release these observers on the right thread. 505 // ShutdownOnUIThread to release these observers on the right thread.
506 // Don't pass it in |profile_params_| to make sure it is correctly cleaned up, 506 // Don't pass it in |profile_params_| to make sure it is correctly cleaned up,
507 // in particular when this ProfileIOData isn't |initialized_| during deletion. 507 // in particular when this ProfileIOData isn't |initialized_| during deletion.
508 #if defined(ENABLE_CONFIGURATION_POLICY) 508 #if defined(ENABLE_CONFIGURATION_POLICY)
509 policy::URLBlacklist::SegmentURLCallback callback = 509 policy::URLBlacklist::SegmentURLCallback callback =
510 static_cast<policy::URLBlacklist::SegmentURLCallback>( 510 static_cast<policy::URLBlacklist::SegmentURLCallback>(
511 url_formatter::SegmentURL); 511 url_fixer::SegmentURL);
512 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 512 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
513 scoped_refptr<base::SequencedTaskRunner> background_task_runner = 513 scoped_refptr<base::SequencedTaskRunner> background_task_runner =
514 pool->GetSequencedTaskRunner(pool->GetSequenceToken()); 514 pool->GetSequencedTaskRunner(pool->GetSequenceToken());
515 url_blacklist_manager_.reset(new policy::URLBlacklistManager( 515 url_blacklist_manager_.reset(new policy::URLBlacklistManager(
516 pref_service, background_task_runner, io_task_runner, callback, 516 pref_service, background_task_runner, io_task_runner, callback,
517 base::Bind(policy::OverrideBlacklistForURL))); 517 base::Bind(policy::OverrideBlacklistForURL)));
518 518
519 if (!IsOffTheRecord()) { 519 if (!IsOffTheRecord()) {
520 // Add policy headers for non-incognito requests. 520 // Add policy headers for non-incognito requests.
521 policy::PolicyHeaderService* policy_header_service = 521 policy::PolicyHeaderService* policy_header_service =
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 new DevToolsNetworkTransactionFactory( 1313 new DevToolsNetworkTransactionFactory(
1314 network_controller_.get(), shared_session), 1314 network_controller_.get(), shared_session),
1315 shared_session->net_log(), backend)); 1315 shared_session->net_log(), backend));
1316 } 1316 }
1317 1317
1318 void ProfileIOData::SetCookieSettingsForTesting( 1318 void ProfileIOData::SetCookieSettingsForTesting(
1319 content_settings::CookieSettings* cookie_settings) { 1319 content_settings::CookieSettings* cookie_settings) {
1320 DCHECK(!cookie_settings_.get()); 1320 DCHECK(!cookie_settings_.get());
1321 cookie_settings_ = cookie_settings; 1321 cookie_settings_ = cookie_settings;
1322 } 1322 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ssl/captive_portal_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698