OLD | NEW |
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 "net/proxy/proxy_config_service_linux.h" | 5 #include "net/proxy/proxy_config_service_linux.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #if defined(USE_GCONF) | 9 #if defined(USE_GCONF) |
10 #include <gconf/gconf-client.h> | 10 #include <gconf/gconf-client.h> |
11 #endif // defined(USE_GCONF) | 11 #endif // defined(USE_GCONF) |
12 #include <limits.h> | 12 #include <limits.h> |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 #include <sys/inotify.h> | 15 #include <sys/inotify.h> |
16 #include <unistd.h> | 16 #include <unistd.h> |
17 | 17 |
18 #include <map> | 18 #include <map> |
19 | 19 |
20 #include "base/bind.h" | 20 #include "base/bind.h" |
21 #include "base/compiler_specific.h" | 21 #include "base/compiler_specific.h" |
22 #include "base/debug/leak_annotations.h" | 22 #include "base/debug/leak_annotations.h" |
23 #include "base/environment.h" | 23 #include "base/environment.h" |
24 #include "base/file_util.h" | |
25 #include "base/files/file_path.h" | 24 #include "base/files/file_path.h" |
| 25 #include "base/files/file_util.h" |
26 #include "base/files/scoped_file.h" | 26 #include "base/files/scoped_file.h" |
27 #include "base/logging.h" | 27 #include "base/logging.h" |
28 #include "base/message_loop/message_loop.h" | 28 #include "base/message_loop/message_loop.h" |
29 #include "base/nix/xdg_util.h" | 29 #include "base/nix/xdg_util.h" |
30 #include "base/single_thread_task_runner.h" | 30 #include "base/single_thread_task_runner.h" |
31 #include "base/strings/string_number_conversions.h" | 31 #include "base/strings/string_number_conversions.h" |
32 #include "base/strings/string_tokenizer.h" | 32 #include "base/strings/string_tokenizer.h" |
33 #include "base/strings/string_util.h" | 33 #include "base/strings/string_util.h" |
34 #include "base/threading/thread_restrictions.h" | 34 #include "base/threading/thread_restrictions.h" |
35 #include "base/timer/timer.h" | 35 #include "base/timer/timer.h" |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 void ProxyConfigServiceLinux::RemoveObserver(Observer* observer) { | 1764 void ProxyConfigServiceLinux::RemoveObserver(Observer* observer) { |
1765 delegate_->RemoveObserver(observer); | 1765 delegate_->RemoveObserver(observer); |
1766 } | 1766 } |
1767 | 1767 |
1768 ProxyConfigService::ConfigAvailability | 1768 ProxyConfigService::ConfigAvailability |
1769 ProxyConfigServiceLinux::GetLatestProxyConfig(ProxyConfig* config) { | 1769 ProxyConfigServiceLinux::GetLatestProxyConfig(ProxyConfig* config) { |
1770 return delegate_->GetLatestProxyConfig(config); | 1770 return delegate_->GetLatestProxyConfig(config); |
1771 } | 1771 } |
1772 | 1772 |
1773 } // namespace net | 1773 } // namespace net |
OLD | NEW |