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

Side by Side Diff: net/proxy/polling_proxy_config_service.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_ 5 #ifndef NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_
6 #define NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_ 6 #define NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "net/proxy/proxy_config_service.h" 12 #include "net/proxy/proxy_config_service.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // PollingProxyConfigService is a base class for creating ProxyConfigService 16 // PollingProxyConfigService is a base class for creating ProxyConfigService
17 // implementations that use polling to notice when settings have change. 17 // implementations that use polling to notice when settings have change.
18 // 18 //
19 // It runs code to get the current proxy settings on a background worker 19 // It runs code to get the current proxy settings on a background worker
20 // thread, and notifies registered observers when the value changes. 20 // thread, and notifies registered observers when the value changes.
21 class NET_TEST PollingProxyConfigService : public ProxyConfigService { 21 class NET_EXPORT_PRIVATE PollingProxyConfigService : public ProxyConfigService {
22 public: 22 public:
23 // ProxyConfigService implementation: 23 // ProxyConfigService implementation:
24 virtual void AddObserver(Observer* observer) OVERRIDE; 24 virtual void AddObserver(Observer* observer) OVERRIDE;
25 virtual void RemoveObserver(Observer* observer) OVERRIDE; 25 virtual void RemoveObserver(Observer* observer) OVERRIDE;
26 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE; 26 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE;
27 virtual void OnLazyPoll() OVERRIDE; 27 virtual void OnLazyPoll() OVERRIDE;
28 28
29 protected: 29 protected:
30 // Function for retrieving the current proxy configuration. 30 // Function for retrieving the current proxy configuration.
31 // Implementors must be threadsafe as the function will be invoked from 31 // Implementors must be threadsafe as the function will be invoked from
(...skipping 15 matching lines...) Expand all
47 private: 47 private:
48 class Core; 48 class Core;
49 scoped_refptr<Core> core_; 49 scoped_refptr<Core> core_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(PollingProxyConfigService); 51 DISALLOW_COPY_AND_ASSIGN(PollingProxyConfigService);
52 }; 52 };
53 53
54 } // namespace net 54 } // namespace net
55 55
56 #endif // NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_ 56 #endif // NET_PROXY_POLLING_PROXY_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698