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

Side by Side Diff: chrome/browser/chromeos/proxy_config_service.h

Issue 8102019: redesign and reimplement proxy config service and tracker, revise proxy ui on cros (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_H_
7 #pragma once
8
9 #include "chrome/browser/chromeos/proxy_config_service_impl.h"
10
11 namespace chromeos {
12
13 // Wrapper class for the RefCountedThreadSafe chromeos::ProxyConfigServiceImpl
14 // that forwards net::ProxyConfigService interface to the actual implementation,
15 // instantiated in ProfileIOData::CreateProxyConfigService.
16 class ProxyConfigService : public net::ProxyConfigService {
17 public:
18 explicit ProxyConfigService(
19 const scoped_refptr<ProxyConfigServiceImpl>& impl);
20 virtual ~ProxyConfigService();
21
22 // ProxyConfigService methods. Called from IO thread.
23 virtual void AddObserver(Observer* observer);
24 virtual void RemoveObserver(Observer* observer);
25 virtual ConfigAvailability GetLatestProxyConfig(net::ProxyConfig* config);
26
27 private:
28 scoped_refptr<ProxyConfigServiceImpl> impl_;
29
30 DISALLOW_COPY_AND_ASSIGN(ProxyConfigService);
31 };
32
33 } // namespace chromeos
34
35 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698