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

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

Issue 3047052: chromeos: 1st draft of ProxyConfigService for chromeos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/proxy_config_service_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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
16 // chrome/browser/net/chrome_url_request_context.cc::CreateProxyConfigService.
17 class ProxyConfigService : public net::ProxyConfigService {
18 public:
19 explicit ProxyConfigService(const scoped_refptr<ProxyConfigServiceImpl>& impl)
20 : impl_(impl) {}
21 virtual ~ProxyConfigService() {}
22
23 // ProxyConfigService methods. Called from IO thread.
24 virtual void AddObserver(Observer* observer) {
25 impl_->AddObserver(observer);
26 }
27 virtual void RemoveObserver(Observer* observer) {
28 impl_->RemoveObserver(observer);
29 }
30 virtual bool GetLatestProxyConfig(net::ProxyConfig* config) {
31 return impl_->IOGetProxyConfig(config);
32 }
33
34 private:
35 scoped_refptr<ProxyConfigServiceImpl> impl_;
36
37 DISALLOW_COPY_AND_ASSIGN(ProxyConfigService);
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/proxy_config_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698