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

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

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
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_NETWORK_DELEGATE_ERROR_OBSERVER_H_ 5 #ifndef NET_PROXY_NETWORK_DELEGATE_ERROR_OBSERVER_H_
6 #define NET_PROXY_NETWORK_DELEGATE_ERROR_OBSERVER_H_ 6 #define NET_PROXY_NETWORK_DELEGATE_ERROR_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "net/proxy/proxy_resolver_error_observer.h" 10 #include "net/proxy/proxy_resolver_error_observer.h"
11 11
12 namespace base { 12 namespace base {
13 class MessageLoopProxy; 13 class MessageLoopProxy;
14 } 14 }
15 15
16 namespace net { 16 namespace net {
17 17
18 class NetworkDelegate; 18 class NetworkDelegate;
19 19
20 // An implementation of ProxyResolverErrorObserver that forwards PAC script 20 // An implementation of ProxyResolverErrorObserver that forwards PAC script
21 // errors to a NetworkDelegate object on the thread it lives on. 21 // errors to a NetworkDelegate object on the thread it lives on.
22 class NET_EXPORT_PRIVATE NetworkDelegateErrorObserver 22 class NET_EXPORT_PRIVATE NetworkDelegateErrorObserver
23 : public ProxyResolverErrorObserver { 23 : public ProxyResolverErrorObserver {
24 public: 24 public:
25 NetworkDelegateErrorObserver(NetworkDelegate* network_delegate, 25 NetworkDelegateErrorObserver(NetworkDelegate* network_delegate,
26 base::MessageLoopProxy* origin_loop); 26 base::MessageLoopProxy* origin_loop);
27 virtual ~NetworkDelegateErrorObserver(); 27 ~NetworkDelegateErrorObserver() override;
28 28
29 // ProxyResolverErrorObserver implementation. 29 // ProxyResolverErrorObserver implementation.
30 virtual void OnPACScriptError(int line_number, const base::string16& error) 30 void OnPACScriptError(int line_number, const base::string16& error) override;
31 override;
32 31
33 private: 32 private:
34 class Core; 33 class Core;
35 34
36 scoped_refptr<Core> core_; 35 scoped_refptr<Core> core_;
37 36
38 DISALLOW_COPY_AND_ASSIGN(NetworkDelegateErrorObserver); 37 DISALLOW_COPY_AND_ASSIGN(NetworkDelegateErrorObserver);
39 }; 38 };
40 39
41 } // namespace net 40 } // namespace net
42 41
43 #endif // NET_PROXY_NETWORK_DELEGATE_ERROR_OBSERVER_H_ 42 #endif // NET_PROXY_NETWORK_DELEGATE_ERROR_OBSERVER_H_
OLDNEW
« no previous file with comments | « net/proxy/multi_threaded_proxy_resolver_unittest.cc ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698