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

Unified Diff: net/proxy/proxy_resolver_error_observer_mojo_host.h

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
Index: net/proxy/proxy_resolver_error_observer_mojo_host.h
diff --git a/net/proxy/proxy_resolver_error_observer_mojo_host.h b/net/proxy/proxy_resolver_error_observer_mojo_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ec940a3919088c6e45b72671802900783f9445c
--- /dev/null
+++ b/net/proxy/proxy_resolver_error_observer_mojo_host.h
@@ -0,0 +1,33 @@
+// 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.
+
+#ifndef NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_MOJO_HOST_H_
+#define NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_MOJO_HOST_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "net/base/net_export.h"
+#include "net/proxy/proxy_resolver.mojom.h"
+
+namespace net {
+
+class ProxyResolverErrorObserver;
+
+class NET_EXPORT ProxyResolverErrorObserverMojoHost
+ : public mojo::InterfaceImpl<proxy::ErrorObserver> {
+ public:
+ explicit ProxyResolverErrorObserverMojoHost(
+ scoped_ptr<ProxyResolverErrorObserver> error_observer);
+ ~ProxyResolverErrorObserverMojoHost() override;
+
+ private:
+ void OnPacScriptError(int line_number, const mojo::String& error) override;
+
+ scoped_ptr<ProxyResolverErrorObserver> error_observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ProxyResolverErrorObserverMojoHost);
+};
+
+} // namespace net
+
+#endif // NET_PROXY_PROXY_RESOLVER_ERROR_OBSERVER_MOJO_HOST_H_
« no previous file with comments | « net/proxy/proxy_resolver_error_observer_mojo.cc ('k') | net/proxy/proxy_resolver_error_observer_mojo_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698