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"
18 class TrackedCallback
;
22 class PPAPI_THUNK_EXPORT PPB_NetworkProxy_API
{
24 virtual ~PPB_NetworkProxy_API() {}
26 virtual int32_t GetProxyForURL(PP_Instance instance
,
29 scoped_refptr
<TrackedCallback
> callback
) = 0;
31 static const SingletonResourceID kSingletonResourceID
=
32 NETWORK_PROXY_SINGLETON_ID
;
38 #endif // PPAPI_THUNK_PPB_NETWORK_PROXY_API_H_