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

Unified Diff: net/proxy/proxy_resolver_error_observer_mojo_host.cc

Issue 862813002: WIP: Prototype OOP V8 PAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup and report JS memory usage. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_resolver_error_observer_mojo_host.h ('k') | net/proxy/proxy_resolver_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_error_observer_mojo_host.cc
diff --git a/net/proxy/proxy_resolver_error_observer_mojo_host.cc b/net/proxy/proxy_resolver_error_observer_mojo_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2749c4819d3d512d80aaf8292f5376e354f65990
--- /dev/null
+++ b/net/proxy/proxy_resolver_error_observer_mojo_host.cc
@@ -0,0 +1,26 @@
+// 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_host.h"
+
+#include "mojo/common/common_type_converters.h"
+#include "net/proxy/proxy_resolver_error_observer.h"
+
+namespace net {
+
+ProxyResolverErrorObserverMojoHost::ProxyResolverErrorObserverMojoHost(
+ scoped_ptr<ProxyResolverErrorObserver> error_observer)
+ : error_observer_(error_observer.Pass()) {
+}
+
+ProxyResolverErrorObserverMojoHost::~ProxyResolverErrorObserverMojoHost() =
+ default;
+
+void ProxyResolverErrorObserverMojoHost::OnPacScriptError(
+ int line_number,
+ const mojo::String& error) {
+ error_observer_->OnPACScriptError(line_number, error.To<base::string16>());
+}
+
+} // namespace net
« no previous file with comments | « net/proxy/proxy_resolver_error_observer_mojo_host.h ('k') | net/proxy/proxy_resolver_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698