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

Side by Side Diff: net/proxy/proxy_config_service_fixed.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_PROXY_CONFIG_SERVICE_FIXED_H_ 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/proxy/proxy_config.h" 11 #include "net/proxy/proxy_config.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 // Implementation of ProxyConfigService that returns a fixed result. 16 // Implementation of ProxyConfigService that returns a fixed result.
17 class NET_API ProxyConfigServiceFixed : public ProxyConfigService { 17 class NET_EXPORT ProxyConfigServiceFixed : public ProxyConfigService {
18 public: 18 public:
19 explicit ProxyConfigServiceFixed(const ProxyConfig& pc); 19 explicit ProxyConfigServiceFixed(const ProxyConfig& pc);
20 virtual ~ProxyConfigServiceFixed(); 20 virtual ~ProxyConfigServiceFixed();
21 21
22 // ProxyConfigService methods: 22 // ProxyConfigService methods:
23 virtual void AddObserver(Observer* observer) OVERRIDE {} 23 virtual void AddObserver(Observer* observer) OVERRIDE {}
24 virtual void RemoveObserver(Observer* observer) OVERRIDE {} 24 virtual void RemoveObserver(Observer* observer) OVERRIDE {}
25 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE; 25 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE;
26 26
27 private: 27 private:
28 ProxyConfig pc_; 28 ProxyConfig pc_;
29 }; 29 };
30 30
31 } // namespace net 31 } // namespace net
32 32
33 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ 33 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698