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

Side by Side Diff: chrome/browser/extensions/extension_proxy_api.h

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 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 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 // Defines the Chrome Extensions Proxy Settings API relevant classes to realize 5 // Defines the Chrome Extensions Proxy Settings API relevant classes to realize
6 // the API as specified in chrome/common/extensions/api/extension_api.json. 6 // the API as specified in chrome/common/extensions/api/extension_api.json.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/extensions/extension_preference_api.h" 15 #include "chrome/browser/extensions/extension_preference_api.h"
16 #include "chrome/browser/prefs/proxy_prefs.h" 16 #include "chrome/browser/prefs/proxy_prefs.h"
17 #include "chrome/browser/profiles/profile.h"
18 17
19 class Value; 18 class Value;
20 class ExtensionEventRouterForwarder; 19 class ExtensionEventRouterForwarder;
21 20
22 // Class to convert between the representation of proxy settings used 21 // Class to convert between the representation of proxy settings used
23 // in the Proxy Settings API and the representation used in the PrefStores. 22 // in the Proxy Settings API and the representation used in the PrefStores.
24 // This plugs into the ExtensionPreferenceAPI to get and set proxy settings. 23 // This plugs into the ExtensionPreferenceAPI to get and set proxy settings.
25 class ProxyPrefTransformer : public PrefTransformerInterface { 24 class ProxyPrefTransformer : public PrefTransformerInterface {
26 public: 25 public:
27 ProxyPrefTransformer(); 26 ProxyPrefTransformer();
(...skipping 10 matching lines...) Expand all
38 }; 37 };
39 38
40 // This class observes proxy error events and routes them to the appropriate 39 // This class observes proxy error events and routes them to the appropriate
41 // extensions listening to those events. All methods must be called on the IO 40 // extensions listening to those events. All methods must be called on the IO
42 // thread unless otherwise specified. 41 // thread unless otherwise specified.
43 class ExtensionProxyEventRouter { 42 class ExtensionProxyEventRouter {
44 public: 43 public:
45 static ExtensionProxyEventRouter* GetInstance(); 44 static ExtensionProxyEventRouter* GetInstance();
46 45
47 void OnProxyError(ExtensionEventRouterForwarder* event_router, 46 void OnProxyError(ExtensionEventRouterForwarder* event_router,
48 ProfileId profile_id, 47 void* profile,
49 int error_code); 48 int error_code);
50 49
51 void OnPACScriptError(ExtensionEventRouterForwarder* event_router, 50 void OnPACScriptError(ExtensionEventRouterForwarder* event_router,
52 ProfileId profile_id, 51 void* profile,
53 int line_number, 52 int line_number,
54 const string16& error); 53 const string16& error);
55 54
56 private: 55 private:
57 friend struct DefaultSingletonTraits<ExtensionProxyEventRouter>; 56 friend struct DefaultSingletonTraits<ExtensionProxyEventRouter>;
58 57
59 ExtensionProxyEventRouter(); 58 ExtensionProxyEventRouter();
60 ~ExtensionProxyEventRouter(); 59 ~ExtensionProxyEventRouter();
61 60
62 DISALLOW_COPY_AND_ASSIGN(ExtensionProxyEventRouter); 61 DISALLOW_COPY_AND_ASSIGN(ExtensionProxyEventRouter);
63 }; 62 };
64 63
65 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ 64 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698