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

Side by Side Diff: ios/crnet/crnet_environment.mm

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « ios/crnet/DEPS ('k') | ios/crnet/sdch_owner_pref_storage.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/crnet/crnet_environment.h" 5 #include "ios/crnet/crnet_environment.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/at_exit.h" 11 #include "base/at_exit.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/files/scoped_file.h" 15 #include "base/files/scoped_file.h"
16 #include "base/i18n/icu_util.h" 16 #include "base/i18n/icu_util.h"
17 #include "base/json/json_writer.h" 17 #include "base/json/json_writer.h"
18 #include "base/mac/bind_objc_block.h" 18 #include "base/mac/bind_objc_block.h"
19 #include "base/mac/foundation_util.h" 19 #include "base/mac/foundation_util.h"
20 #include "base/mac/scoped_block.h" 20 #include "base/mac/scoped_block.h"
21 #include "base/macros.h" 21 #include "base/macros.h"
22 #include "base/metrics/statistics_recorder.h" 22 #include "base/metrics/statistics_recorder.h"
23 #include "base/path_service.h" 23 #include "base/path_service.h"
24 #include "base/prefs/json_pref_store.h"
25 #include "base/prefs/pref_filter.h"
24 #include "base/threading/worker_pool.h" 26 #include "base/threading/worker_pool.h"
25 #include "components/prefs/json_pref_store.h"
26 #include "components/prefs/pref_filter.h"
27 #import "components/webp_transcode/webp_network_client_factory.h" 27 #import "components/webp_transcode/webp_network_client_factory.h"
28 #include "crypto/nss_util.h" 28 #include "crypto/nss_util.h"
29 #include "ios/crnet/sdch_owner_pref_storage.h" 29 #include "ios/crnet/sdch_owner_pref_storage.h"
30 #include "ios/net/cookies/cookie_store_ios.h" 30 #include "ios/net/cookies/cookie_store_ios.h"
31 #include "ios/net/crn_http_protocol_handler.h" 31 #include "ios/net/crn_http_protocol_handler.h"
32 #include "ios/net/empty_nsurlcache.h" 32 #include "ios/net/empty_nsurlcache.h"
33 #include "ios/net/http_cache_helper.h" 33 #include "ios/net/http_cache_helper.h"
34 #include "ios/net/request_tracker.h" 34 #include "ios/net/request_tracker.h"
35 #include "ios/web/public/user_agent.h" 35 #include "ios/web/public/user_agent.h"
36 #include "net/base/net_errors.h" 36 #include "net/base/net_errors.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 491
492 return user_agent_settings->GetUserAgent(); 492 return user_agent_settings->GetUserAgent();
493 } 493 }
494 494
495 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) { 495 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) {
496 PostToNetworkThread( 496 PostToNetworkThread(
497 FROM_HERE, 497 FROM_HERE,
498 base::Bind(&net::ClearHttpCache, main_context_getter_, 498 base::Bind(&net::ClearHttpCache, main_context_getter_,
499 network_io_thread_->task_runner(), base::BindBlock(callback))); 499 network_io_thread_->task_runner(), base::BindBlock(callback)));
500 } 500 }
OLDNEW
« no previous file with comments | « ios/crnet/DEPS ('k') | ios/crnet/sdch_owner_pref_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698