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

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

Issue 60009: ProxyConfigService for Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WIN_H_ 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_WIN_H_
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_WIN_H_ 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <winhttp.h> 9 #include <winhttp.h>
10 10
11 #include "net/proxy/proxy_config_service.h" 11 #include "net/proxy/proxy_config_service.h"
12 #include "testing/gtest/include/gtest/gtest_prod.h" 12 #include "testing/gtest/include/gtest/gtest_prod.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // Implementation of ProxyConfigService that retrieves the system proxy 16 // Implementation of ProxyConfigService that retrieves the system proxy
17 // settings. 17 // settings.
18 class ProxyConfigServiceWin : public ProxyConfigService { 18 class ProxyConfigServiceWin : public ProxyConfigService {
19 public: 19 public:
20 // ProxyConfigService methods. 20 // ProxyConfigService methods:
21 virtual int GetProxyConfig(ProxyConfig* config); 21 virtual int GetProxyConfig(ProxyConfig* config);
22 22
23 private: 23 private:
24 FRIEND_TEST(ProxyConfigServiceWinTest, SetFromIEConfig); 24 FRIEND_TEST(ProxyConfigServiceWinTest, SetFromIEConfig);
25 25
26 // Set |config| using the proxy configuration values of |ie_config|. 26 // Set |config| using the proxy configuration values of |ie_config|.
27 static void SetFromIEConfig( 27 static void SetFromIEConfig(
28 ProxyConfig* config, 28 ProxyConfig* config,
29 const WINHTTP_CURRENT_USER_IE_PROXY_CONFIG& ie_config); 29 const WINHTTP_CURRENT_USER_IE_PROXY_CONFIG& ie_config);
30 }; 30 };
31 31
32 } // namespace net 32 } // namespace net
33 33
34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_WIN_H_ 34 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_WIN_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_linux_unittest.cc ('k') | net/proxy/proxy_config_service_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698