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_ |