Android WebView: build debug/release based on variant.
[chromium-blink-merge.git] / ppapi / thunk / ppb_network_proxy_api.h
blob3cefaa070bcaf843e57b60e24a31f5143fdc323f
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.
5 #ifndef PPAPI_THUNK_PPB_NETWORK_PROXY_API_H_
6 #define PPAPI_THUNK_PPB_NETWORK_PROXY_API_H_
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/shared_impl/singleton_resource_id.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h"
14 struct PP_Var;
16 namespace ppapi {
18 class TrackedCallback;
20 namespace thunk {
22 class PPAPI_THUNK_EXPORT PPB_NetworkProxy_API {
23 public:
24 virtual ~PPB_NetworkProxy_API() {}
26 virtual int32_t GetProxyForURL(PP_Instance instance,
27 PP_Var url,
28 PP_Var* proxy_string,
29 scoped_refptr<TrackedCallback> callback) = 0;
31 static const SingletonResourceID kSingletonResourceID =
32 NETWORK_PROXY_SINGLETON_ID;
35 } // namespace thunk
36 } // namespace ppapi
38 #endif // PPAPI_THUNK_PPB_NETWORK_PROXY_API_H_