OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/cronet/ios/cronet_environment.h" | 5 #include "components/cronet/ios/cronet_environment.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/feature_list.h" | 12 #include "base/feature_list.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/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/mac/bind_objc_block.h" | 17 #include "base/mac/bind_objc_block.h" |
18 #include "base/mac/foundation_util.h" | 18 #include "base/mac/foundation_util.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/metrics/statistics_recorder.h" | 21 #include "base/metrics/statistics_recorder.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
24 #include "base/synchronization/waitable_event.h" | 24 #include "base/synchronization/waitable_event.h" |
25 #include "base/task_scheduler/task_scheduler.h" | 25 #include "base/task_scheduler/task_scheduler.h" |
26 #include "base/threading/worker_pool.h" | |
27 #include "components/cronet/histogram_manager.h" | 26 #include "components/cronet/histogram_manager.h" |
28 #include "components/cronet/ios/version.h" | 27 #include "components/cronet/ios/version.h" |
29 #include "components/prefs/json_pref_store.h" | 28 #include "components/prefs/json_pref_store.h" |
30 #include "components/prefs/pref_filter.h" | 29 #include "components/prefs/pref_filter.h" |
31 #include "ios/net/cookies/cookie_store_ios.h" | 30 #include "ios/net/cookies/cookie_store_ios.h" |
32 #include "ios/web/public/user_agent.h" | 31 #include "ios/web/public/user_agent.h" |
33 #include "net/base/network_change_notifier.h" | 32 #include "net/base/network_change_notifier.h" |
34 #include "net/cert/cert_verifier.h" | 33 #include "net/cert/cert_verifier.h" |
35 #include "net/dns/host_resolver.h" | 34 #include "net/dns/host_resolver.h" |
36 #include "net/dns/mapped_host_resolver.h" | 35 #include "net/dns/mapped_host_resolver.h" |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 event->Signal(); | 369 event->Signal(); |
371 } | 370 } |
372 | 371 |
373 std::string CronetEnvironment::getDefaultQuicUserAgentId() const { | 372 std::string CronetEnvironment::getDefaultQuicUserAgentId() const { |
374 return base::SysNSStringToUTF8([[NSBundle mainBundle] | 373 return base::SysNSStringToUTF8([[NSBundle mainBundle] |
375 objectForInfoDictionaryKey:@"CFBundleDisplayName"]) + | 374 objectForInfoDictionaryKey:@"CFBundleDisplayName"]) + |
376 " Cronet/" + CRONET_VERSION; | 375 " Cronet/" + CRONET_VERSION; |
377 } | 376 } |
378 | 377 |
379 } // namespace cronet | 378 } // namespace cronet |
OLD | NEW |