diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 12:02:41 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 12:02:41 +0000 |
commit | 82a3767c45e85b77fb41d4fc92fc49fcb879e75b (patch) | |
tree | c1e8b1cc380f014a68c194929fb1abd799981cec /net/proxy/proxy_resolver_error_observer.h | |
parent | ef1cef9aef6034dda84cee719d2c9012bfb75a5e (diff) | |
download | chromium_src-82a3767c45e85b77fb41d4fc92fc49fcb879e75b.zip chromium_src-82a3767c45e85b77fb41d4fc92fc49fcb879e75b.tar.gz chromium_src-82a3767c45e85b77fb41d4fc92fc49fcb879e75b.tar.bz2 |
Add a method for PAC script errors to the network delegate.
Also add a wrapper class to avoid passing around raw NULL pointers, and a bridge so I can invoke the method from other than the IO thread
BUG=48930
TEST=net unittests
Review URL: http://codereview.chromium.org/6822026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_error_observer.h')
-rw-r--r-- | net/proxy/proxy_resolver_error_observer.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/proxy/proxy_resolver_error_observer.h b/net/proxy/proxy_resolver_error_observer.h new file mode 100644 index 0000000..ddb0694 --- /dev/null +++ b/net/proxy/proxy_resolver_error_observer.h @@ -0,0 +1,27 @@ +// Copyright (c) 2011 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. + +#ifndef NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ +#define NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ +#pragma once + +#include "base/string16.h" + +namespace net { + +// Interface for observing JavaScript error messages from PAC scripts. +class ProxyResolverErrorObserver { + public: + ProxyResolverErrorObserver() {} + virtual ~ProxyResolverErrorObserver() {} + + virtual void OnPACScriptError(int line_number, const string16& error) = 0; + + private: + DISALLOW_COPY_AND_ASSIGN(ProxyResolverErrorObserver); +}; + +} // namespace net + +#endif // NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ |