diff options
author | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-04 15:51:22 +0000 |
---|---|---|
committer | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-04 15:51:22 +0000 |
commit | 7444123fbbcfa5286f7d609f4d2dd60211e328ac (patch) | |
tree | 0ccc29586a68f63eaee74ca3a74b290b8417a27f /net/proxy/proxy_config_service_ios.h | |
parent | b08fb0a4ed131d9d6425f3410b4618833b4a2f30 (diff) | |
download | chromium_src-7444123fbbcfa5286f7d609f4d2dd60211e328ac.zip chromium_src-7444123fbbcfa5286f7d609f4d2dd60211e328ac.tar.gz chromium_src-7444123fbbcfa5286f7d609f4d2dd60211e328ac.tar.bz2 |
Add iOS support to ProxyService
The iOS implementation is similar to the Mac implementation with the following
differences:
- the SCDynamicStore API does not exist on iOS, thus configuration changes are
only detected by polling
- several features are not supported.
BUG=145954
Review URL: https://chromiumcodereview.appspot.com/10882010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_config_service_ios.h')
-rw-r--r-- | net/proxy/proxy_config_service_ios.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net/proxy/proxy_config_service_ios.h b/net/proxy/proxy_config_service_ios.h new file mode 100644 index 0000000..fff917a --- /dev/null +++ b/net/proxy/proxy_config_service_ios.h @@ -0,0 +1,34 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ +#define NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ + +#include "net/proxy/polling_proxy_config_service.h" + +namespace base { +class SingleThreadTaskRunner; +} // namespace base + +namespace net { + +class ProxyConfigServiceIOS : public PollingProxyConfigService { + public: + // Constructs a ProxyConfigService that watches the iOS system proxy settings. + // This instance is expected to be operated and deleted on the IO thread + // (however it may be constructed from a different thread). + explicit ProxyConfigServiceIOS( + base::SingleThreadTaskRunner* io_thread_task_runner); + virtual ~ProxyConfigServiceIOS(); + + private: + // The thread that we expect to be operated on. + scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; + + DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceIOS); +}; + +} // namespace net + +#endif // NET_PROXY_PROXY_CONFIG_SERVICE_IOS_H_ |