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

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

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 years 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/proxy/proxy_config.h" 10 #include "net/proxy/proxy_config.h"
11 #include "net/proxy/proxy_config_service.h" 11 #include "net/proxy/proxy_config_service.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // Implementation of ProxyConfigService that returns a fixed result. 15 // Implementation of ProxyConfigService that returns a fixed result.
16 class ProxyConfigServiceFixed : public ProxyConfigService { 16 class ProxyConfigServiceFixed : public ProxyConfigService {
17 public: 17 public:
18 explicit ProxyConfigServiceFixed(const ProxyConfig& pc) : pc_(pc) {} 18 explicit ProxyConfigServiceFixed(const ProxyConfig& pc);
19 virtual ~ProxyConfigServiceFixed();
19 20
20 // ProxyConfigService methods: 21 // ProxyConfigService methods:
21 virtual void AddObserver(Observer* observer) {} 22 virtual void AddObserver(Observer* observer) {}
22 virtual void RemoveObserver(Observer* observer) {} 23 virtual void RemoveObserver(Observer* observer) {}
23 virtual bool GetLatestProxyConfig(ProxyConfig* config) { 24 virtual bool GetLatestProxyConfig(ProxyConfig* config);
24 *config = pc_;
25 return true;
26 }
27 25
28 private: 26 private:
29 ProxyConfig pc_; 27 ProxyConfig pc_;
30 }; 28 };
31 29
32 } // namespace net 30 } // namespace net
33 31
34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ 32 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698