| Index: net/proxy/proxy_resolver_error_observer_mojo.cc
|
| diff --git a/net/proxy/proxy_resolver_error_observer_mojo.cc b/net/proxy/proxy_resolver_error_observer_mojo.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6f65cb7773c64fb135bdd305b2b1ed47a31fc713
|
| --- /dev/null
|
| +++ b/net/proxy/proxy_resolver_error_observer_mojo.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/proxy/proxy_resolver_error_observer_mojo.h"
|
| +
|
| +#include "mojo/common/common_type_converters.h"
|
| +
|
| +namespace net {
|
| +
|
| +ProxyResolverErrorObserverMojo::ProxyResolverErrorObserverMojo(
|
| + proxy::ErrorObserverPtr error_observer)
|
| + : error_observer_(error_observer.Pass()) {
|
| +}
|
| +
|
| +ProxyResolverErrorObserverMojo::~ProxyResolverErrorObserverMojo() = default;
|
| +
|
| +void ProxyResolverErrorObserverMojo::OnPACScriptError(
|
| + int line_number,
|
| + const base::string16& error) {
|
| + error_observer_->OnPacScriptError(line_number, mojo::String::From(error));
|
| +}
|
| +
|
| +} // namespace net
|
|
|