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

Unified Diff: ppapi/cpp/dev/network_proxy_dev.h

Issue 16819002: PPAPI: Introduce PPB_NetworkProxy_Dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 6 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 | « ppapi/c/dev/ppb_network_proxy_dev.h ('k') | ppapi/cpp/dev/network_proxy_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/network_proxy_dev.h
diff --git a/ppapi/cpp/dev/network_proxy_dev.h b/ppapi/cpp/dev/network_proxy_dev.h
new file mode 100644
index 0000000000000000000000000000000000000000..482ce679778acda5f0f2ca6552c357fbafe2c29d
--- /dev/null
+++ b/ppapi/cpp/dev/network_proxy_dev.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 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 PPAPI_CPP_NETWORK_PROXY_H_
+#define PPAPI_CPP_NETWORK_PROXY_H_
+
+#include <string>
+
+#include "ppapi/c/dev/ppb_network_proxy_dev.h"
+#include "ppapi/cpp/completion_callback.h"
+#include "ppapi/cpp/instance_handle.h"
+
+namespace pp {
+
+class NetworkProxy {
+ public:
+ static bool IsAvailable();
+
+ static int32_t GetProxyForURL(
+ const InstanceHandle& instance,
+ const Var& url,
+ const pp::CompletionCallbackWithOutput<Var>& callback);
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_NETWORK_PROXY_H_
« no previous file with comments | « ppapi/c/dev/ppb_network_proxy_dev.h ('k') | ppapi/cpp/dev/network_proxy_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698