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

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

Issue 8467012: Refactor proxy handling for ChromeOS to not go through the CrosSettings interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Centralized the proxy change notification. 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_CROS_SETTINGS_PARSER_H_
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_
7 #pragma once
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 #include <string>
pastarmovj 2011/11/09 17:51:53 Done.
8
9 #include "base/values.h"
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 forward declaration would suffice.
pastarmovj 2011/11/09 17:51:53 Done.
10 #include "chrome/browser/chromeos/proxy_config_service_impl.h"
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 don't need this?
pastarmovj 2011/11/09 17:51:53 Done. I need it in the cc only.
11
12 class Profile;
13
14 namespace chromeos {
15
16 extern const char kProxyPacUrl[];
17 extern const char kProxySingleHttp[];
18 extern const char kProxySingleHttpPort[];
19 extern const char kProxyHttpUrl[];
20 extern const char kProxyHttpPort[];
21 extern const char kProxyHttpsUrl[];
22 extern const char kProxyHttpsPort[];
23 extern const char kProxyType[];
24 extern const char kProxySingle[];
25 extern const char kProxyFtpUrl[];
26 extern const char kProxyFtpPort[];
27 extern const char kProxySocks[];
28 extern const char kProxySocksPort[];
29 extern const char kProxyIgnoreList[];
30
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 Class description.
pastarmovj 2011/11/09 17:51:53 Done.
31 class ProxyCrosSettingsParser {
32 public:
33 // Sets a value in the current proxy configuration on the specified profile.
34 static void SetProxyPrefValue(Profile* profile,
35 const std::string& path,
36 const base::Value* in_value);
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 newline
pastarmovj 2011/11/09 17:51:53 Done.
37 // Gets a value from the current proxy configuration on the specified profile.
38 static bool GetProxyPrefValue(Profile* profile,
39 const std::string& path,
40 base::Value** out_value);
41
42 private:
43 // We should never need objects of this class it is meant only to provide its
44 // helper functions.
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 Make it a namespace then?
pastarmovj 2011/11/09 17:51:53 Done.
45 explicit ProxyCrosSettingsParser();
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 newline
46 DISALLOW_COPY_AND_ASSIGN(ProxyCrosSettingsParser);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698