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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_host.h"
6
7 #include "mojo/common/common_type_converters.h"
8 #include "net/proxy/proxy_resolver_error_observer.h"
9
10 namespace net {
11
12 ProxyResolverErrorObserverMojoHost::ProxyResolverErrorObserverMojoHost(
13 scoped_ptr<ProxyResolverErrorObserver> error_observer)
14 : error_observer_(error_observer.Pass()) {
15 }
16
17 ProxyResolverErrorObserverMojoHost::~ProxyResolverErrorObserverMojoHost() =
18 default;
19
20 void ProxyResolverErrorObserverMojoHost::OnPacScriptError(
21 int line_number,
22 const mojo::String& error) {
23 error_observer_->OnPACScriptError(line_number, error.To<base::string16>());
24 }
25
26 } // namespace net
OLDNEW
« 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