OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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 #ifndef PPAPI_CPP_NETWORK_PROXY_H_ | |
6 #define PPAPI_CPP_NETWORK_PROXY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "ppapi/c/dev/ppb_network_proxy_dev.h" | |
11 #include "ppapi/cpp/completion_callback.h" | |
12 #include "ppapi/cpp/instance_handle.h" | |
13 | |
14 namespace pp { | |
15 | |
16 class NetworkProxy { | |
17 public: | |
18 static bool IsAvailable(); | |
19 | |
20 static int32_t GetProxyForURL( | |
21 const InstanceHandle& instance, | |
22 const Var& url, | |
23 const pp::CompletionCallbackWithOutput<Var>& callback); | |
24 }; | |
25 | |
26 } // namespace pp | |
27 | |
28 #endif // PPAPI_CPP_NETWORK_PROXY_H_ | |
OLD | NEW |