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

Unified Diff: chrome/browser/extensions/extension_proxy_api.h

Issue 6549015: Extension half of the proxy error event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/common/extensions/docs
Patch Set: Created 9 years, 10 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
Index: chrome/browser/extensions/extension_proxy_api.h
diff --git a/chrome/browser/extensions/extension_proxy_api.h b/chrome/browser/extensions/extension_proxy_api.h
index aa408b24598b2d6f8338cefbfc0168af9a7efbc3..dd5ae9777281ecc108cc2736f324ff4909a86d12 100644
--- a/chrome/browser/extensions/extension_proxy_api.h
+++ b/chrome/browser/extensions/extension_proxy_api.h
@@ -7,10 +7,31 @@
#include <string>
+#include "base/singleton.h"
#include "chrome/browser/extensions/extension_function.h"
#include "net/proxy/proxy_config.h"
class DictionaryValue;
+class ExtensionIOEventRouter;
+
+// 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 {
Bernhard Bauer 2011/02/22 13:13:53 I guess this class is not used yet?
+ public:
+ static ExtensionProxyEventRouter* GetInstance();
+
+ void OnProxyError(const ExtensionIOEventRouter* event_router,
+ int error_code);
+
+ private:
+ friend struct DefaultSingletonTraits<ExtensionProxyEventRouter>;
+
+ ExtensionProxyEventRouter();
+ ~ExtensionProxyEventRouter();
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionProxyEventRouter);
+};
class ProxySettingsFunction : public SyncExtensionFunction {
public:

Powered by Google App Engine
This is Rietveld 408576698