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

Side by Side Diff: net/proxy/proxy_resolver_error_observer.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 unified diff | Download patch
« no previous file with comments | « net/proxy/proxy_resolver.h ('k') | net/proxy/proxy_resolver_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ 5 #ifndef NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_
6 #define NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ 6 #define NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 // Interface for observing JavaScript error messages from PAC scripts. 14 // Interface for observing JavaScript error messages from PAC scripts.
15 class NET_EXPORT_PRIVATE ProxyResolverErrorObserver { 15 class NET_EXPORT_PRIVATE ProxyResolverErrorObserver {
16 public: 16 public:
17 ProxyResolverErrorObserver() {} 17 ProxyResolverErrorObserver() {}
18 virtual ~ProxyResolverErrorObserver() {} 18 virtual ~ProxyResolverErrorObserver() {}
19 19
20 // Handler for when an error is encountered. |line_number| may be -1 20 // Handler for when an error is encountered. |line_number| may be -1
21 // if a line number is not applicable to this error. |error| is a message 21 // if a line number is not applicable to this error. |error| is a message
22 // describing the error. 22 // describing the error.
23 // 23 //
24 // Note on threading: This may get called from a worker thread. If the 24 // Note on threading: This may get called from a worker thread. If the
25 // backing proxy resolver is ProxyResolverV8Tracing, then it will not 25 // backing proxy resolver is ProxyResolverV8Tracing, then it will not
26 // be called concurrently, however it will be called from a different 26 // be called concurrently, however it will be called from a different
27 // thread than the proxy resolver's origin thread. 27 // thread than the proxy resolver's origin thread.
28 virtual void OnPACScriptError(int line_number, 28 virtual void OnPACScriptError(int line_number,
29 const base::string16& error) = 0; 29 const base::string16& error) = 0;
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(ProxyResolverErrorObserver); 32 DISALLOW_COPY_AND_ASSIGN(ProxyResolverErrorObserver);
33 }; 33 };
34 34
35 } // namespace net 35 } // namespace net
36 36
37 #endif // NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_ 37 #endif // NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver.h ('k') | net/proxy/proxy_resolver_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698