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