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..203504ecc46696114f21c0e2b5bf24410f625480 |
--- /dev/null |
+++ b/ppapi/cpp/dev/network_proxy_dev.h |
@@ -0,0 +1,33 @@ |
+// 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: |
+ // Is this worth having? |
+ static bool IsAvailable(); |
+ |
+ // TODO(dmichael): Sucks to mix string and Var. Would be nice to have both be |
+ // string. |
+ // TODO(dmichael): There's no way to cancel the request, and there's not even |
+ // a resource to release to cause it to be cancelled. Is that okay? |
+ static int32_t GetProxyForURL( |
+ const InstanceHandle& instance, |
+ const std::string& url, |
yzshen1
2013/06/16 23:49:53
- I think once Brett suggested me to have the C++
dmichael (off chromium)
2013/06/17 21:48:28
Yes, I wanted them to be consistent. It seems like
|
+ const pp::CompletionCallbackWithOutput<Var>& callback); |
+}; |
+ |
+} // namespace pp |
+ |
+#endif // PPAPI_CPP_NETWORK_PROXY_H_ |