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

Unified Diff: chrome/browser/extensions/api/proxy/proxy_api.h

Issue 9690006: Move Proxy Settings API from chrome/browser/extensions to chrome/browser/eextensions/api/proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/proxy/proxy_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/proxy/proxy_api.h
diff --git a/chrome/browser/extensions/extension_proxy_api.h b/chrome/browser/extensions/api/proxy/proxy_api.h
similarity index 78%
rename from chrome/browser/extensions/extension_proxy_api.h
rename to chrome/browser/extensions/api/proxy/proxy_api.h
index c4fe99dd6cc9ca9e3ffe02e81ddc1b250537307a..607df331b4660eb4d6d0f1c1faddd853facdcdd1 100644
--- a/chrome/browser/extensions/extension_proxy_api.h
+++ b/chrome/browser/extensions/api/proxy/proxy_api.h
@@ -1,12 +1,12 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines the Chrome Extensions Proxy Settings API relevant classes to realize
// the API as specified in the extension API JSON.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_H_
#include <string>
@@ -21,6 +21,8 @@ namespace base {
class Value;
}
+namespace extensions {
+
// Class to convert between the representation of proxy settings used
// in the Proxy Settings API and the representation used in the PrefStores.
// This plugs into the ExtensionPreferenceAPI to get and set proxy settings.
@@ -43,9 +45,9 @@ class ProxyPrefTransformer : public PrefTransformerInterface {
// This class observes proxy error events and routes them to the appropriate
// extensions listening to those events. All methods must be called on the IO
// thread unless otherwise specified.
-class ExtensionProxyEventRouter {
+class ProxyEventRouter {
public:
- static ExtensionProxyEventRouter* GetInstance();
+ static ProxyEventRouter* GetInstance();
void OnProxyError(ExtensionEventRouterForwarder* event_router,
void* profile,
@@ -57,12 +59,14 @@ class ExtensionProxyEventRouter {
const string16& error);
private:
- friend struct DefaultSingletonTraits<ExtensionProxyEventRouter>;
+ friend struct DefaultSingletonTraits<ProxyEventRouter>;
- ExtensionProxyEventRouter();
- ~ExtensionProxyEventRouter();
+ ProxyEventRouter();
+ ~ProxyEventRouter();
- DISALLOW_COPY_AND_ASSIGN(ExtensionProxyEventRouter);
+ DISALLOW_COPY_AND_ASSIGN(ProxyEventRouter);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/proxy/proxy_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698