OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mojo/services/network/network_service_delegate.h" | 5 #include "mojo/services/network/network_service_delegate.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "mojo/application/public/cpp/application_connection.h" | 14 #include "mojo/application/public/cpp/application_connection.h" |
15 #include "mojo/message_pump/message_pump_mojo.h" | 15 #include "mojo/common/message_pump_mojo.h" |
16 #include "mojo/services/network/network_service_delegate_observer.h" | 16 #include "mojo/services/network/network_service_delegate_observer.h" |
17 #include "mojo/services/network/network_service_impl.h" | 17 #include "mojo/services/network/network_service_impl.h" |
18 #include "mojo/services/network/url_loader_factory_impl.h" | 18 #include "mojo/services/network/url_loader_factory_impl.h" |
19 #include "mojo/util/capture_util.h" | 19 #include "mojo/util/capture_util.h" |
20 #include "sql/mojo/mojo_vfs.h" | 20 #include "sql/mojo/mojo_vfs.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kSQLThreadName[] = "SQL_IO_Thread"; | 24 const char kSQLThreadName[] = "SQL_IO_Thread"; |
25 const char kUserDataDir[] = "user-data-dir"; | 25 const char kUserDataDir[] = "user-data-dir"; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 FOR_EACH_OBSERVER(NetworkServiceDelegateObserver, observers_, | 183 FOR_EACH_OBSERVER(NetworkServiceDelegateObserver, observers_, |
184 OnIOWorkerThreadShutdown()); | 184 OnIOWorkerThreadShutdown()); |
185 | 185 |
186 // Destroy the io worker thread here so that we can commit any pending | 186 // Destroy the io worker thread here so that we can commit any pending |
187 // cookies here. | 187 // cookies here. |
188 io_worker_thread_.reset(); | 188 io_worker_thread_.reset(); |
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 } // namespace mojo | 192 } // namespace mojo |
OLD | NEW |