summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_proxy_api.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-22 13:23:47 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-22 13:23:47 +0000
commit8339da46719b5876723b1182b5ca60e9e07c2d81 (patch)
tree56ea3e3e2d4a4603e0e6d76ac3123dd4fc5ae7aa /chrome/browser/extensions/extension_proxy_api.h
parent8210f52f74e5e62bcd366119197a7f5aa51020ef (diff)
downloadchromium_src-8339da46719b5876723b1182b5ca60e9e07c2d81.zip
chromium_src-8339da46719b5876723b1182b5ca60e9e07c2d81.tar.gz
chromium_src-8339da46719b5876723b1182b5ca60e9e07c2d81.tar.bz2
Extension half of the proxy error event
BUG=71067 TEST=test is still disabled, pending network side changes Review URL: http://codereview.chromium.org/6549015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_proxy_api.h')
-rw-r--r--chrome/browser/extensions/extension_proxy_api.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_proxy_api.h b/chrome/browser/extensions/extension_proxy_api.h
index aa408b2..dd5ae97 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 {
+ 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: