OLD | NEW |
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 #include "net/proxy/network_delegate_error_observer.h" | 5 #include "net/proxy/network_delegate_error_observer.h" |
6 | 6 |
| 7 #include "base/location.h" |
7 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
8 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
9 #include "net/base/network_delegate.h" | 10 #include "net/base/network_delegate.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 // NetworkDelegateErrorObserver::Core ----------------------------------------- | 14 // NetworkDelegateErrorObserver::Core ----------------------------------------- |
14 | 15 |
15 class NetworkDelegateErrorObserver::Core | 16 class NetworkDelegateErrorObserver::Core |
16 : public base::RefCountedThreadSafe<NetworkDelegateErrorObserver::Core> { | 17 : public base::RefCountedThreadSafe<NetworkDelegateErrorObserver::Core> { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 NetworkDelegateErrorObserver::~NetworkDelegateErrorObserver() { | 72 NetworkDelegateErrorObserver::~NetworkDelegateErrorObserver() { |
72 core_->Shutdown(); | 73 core_->Shutdown(); |
73 } | 74 } |
74 | 75 |
75 void NetworkDelegateErrorObserver::OnPACScriptError(int line_number, | 76 void NetworkDelegateErrorObserver::OnPACScriptError(int line_number, |
76 const string16& error) { | 77 const string16& error) { |
77 core_->NotifyPACScriptError(line_number, error); | 78 core_->NotifyPACScriptError(line_number, error); |
78 } | 79 } |
79 | 80 |
80 } // namespace net | 81 } // namespace net |
OLD | NEW |