OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/proxy/proxy_resolver_error_observer_mojo.h" |
| 6 |
| 7 #include "mojo/common/common_type_converters.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 ProxyResolverErrorObserverMojo::ProxyResolverErrorObserverMojo( |
| 12 proxy::ErrorObserverPtr error_observer) |
| 13 : error_observer_(error_observer.Pass()) { |
| 14 } |
| 15 |
| 16 ProxyResolverErrorObserverMojo::~ProxyResolverErrorObserverMojo() = default; |
| 17 |
| 18 void ProxyResolverErrorObserverMojo::OnPACScriptError( |
| 19 int line_number, |
| 20 const base::string16& error) { |
| 21 error_observer_->OnPacScriptError(line_number, mojo::String::From(error)); |
| 22 } |
| 23 |
| 24 } // namespace net |
OLD | NEW |