Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
network_proxy.h
1 // Copyright 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 <stdint.h>
9 
10 #include <string>
11 
14 
15 namespace pp {
16 
24 class NetworkProxy {
25  public:
27  static bool IsAvailable();
28 
43  static int32_t GetProxyForURL(
44  const InstanceHandle& instance,
45  const Var& url,
47 };
48 
49 } // namespace pp
50 
51 #endif // PPAPI_CPP_NETWORK_PROXY_H_
Definition: completion_callback.h:189
static bool IsAvailable()
Returns true if the browser supports this API, false otherwise.
Definition: network_proxy.h:24
Definition: instance_handle.h:44
static int32_t GetProxyForURL(const InstanceHandle &instance, const Var &url, const pp::CompletionCallbackWithOutput< Var > &callback)
A generic type used for passing data types between the module and the page.
Definition: var.h:23