summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-22 18:13:47 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-22 18:13:47 +0000
commitadf250c3bc7f9d15b1b69211b93ca2b3ca8b8830 (patch)
treed3459dc1a2c789667ee5733c14ada19adba6b802 /ppapi/thunk
parentd6bc65a1da688bf34833e5df7954a1e697efa8fe (diff)
downloadchromium_src-adf250c3bc7f9d15b1b69211b93ca2b3ca8b8830.zip
chromium_src-adf250c3bc7f9d15b1b69211b93ca2b3ca8b8830.tar.gz
chromium_src-adf250c3bc7f9d15b1b69211b93ca2b3ca8b8830.tar.bz2
Pepper thunks: Merge '_Private' into overall API.
Dev and Trusted interfaces are already intergrated into APIs in ppapi/thunk. For many APIs, this is already the case. This is needed to autogenerate thunks for some "private" IDL files. Tested: Built chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14362004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r--ppapi/thunk/ppb_network_list_api.h (renamed from ppapi/thunk/ppb_network_list_private_api.h)11
-rw-r--r--ppapi/thunk/ppb_network_list_private_thunk.cc20
2 files changed, 16 insertions, 15 deletions
diff --git a/ppapi/thunk/ppb_network_list_private_api.h b/ppapi/thunk/ppb_network_list_api.h
index ea91349..bbadded 100644
--- a/ppapi/thunk/ppb_network_list_private_api.h
+++ b/ppapi/thunk/ppb_network_list_api.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_THUNK_PPB_NETWORK_LIST_PRIVATE_API_H_
-#define PPAPI_THUNK_PPB_NETWORK_LIST_PRIVATE_API_H_
+#ifndef PPAPI_THUNK_PPB_NETWORK_LIST_API_H_
+#define PPAPI_THUNK_PPB_NETWORK_LIST_API_H_
#include <vector>
@@ -17,14 +17,15 @@ typedef std::vector<NetworkInfo> NetworkList;
namespace thunk {
-class PPAPI_THUNK_EXPORT PPB_NetworkList_Private_API {
+class PPAPI_THUNK_EXPORT PPB_NetworkList_API {
public:
- virtual ~PPB_NetworkList_Private_API() {}
+ virtual ~PPB_NetworkList_API() {}
// This function is not exposed through the C API, but returns the
// internal data for easy proxying.
virtual const NetworkList& GetNetworkListData() const = 0;
+ // Private API
virtual uint32_t GetCount() = 0;
virtual PP_Var GetName(uint32_t index) = 0;
virtual PP_NetworkListType_Private GetType(uint32_t index) = 0;
@@ -39,4 +40,4 @@ class PPAPI_THUNK_EXPORT PPB_NetworkList_Private_API {
} // namespace thunk
} // namespace ppapi
-#endif // PPAPI_THUNK_PPB_NETWORK_LIST_PRIVATE_API_H_
+#endif // PPAPI_THUNK_PPB_NETWORK_LIST_API_H_
diff --git a/ppapi/thunk/ppb_network_list_private_thunk.cc b/ppapi/thunk/ppb_network_list_private_thunk.cc
index a07ac71..211c7936 100644
--- a/ppapi/thunk/ppb_network_list_private_thunk.cc
+++ b/ppapi/thunk/ppb_network_list_private_thunk.cc
@@ -3,14 +3,14 @@
// found in the LICENSE file.
// From private/ppb_network_list_private.idl,
-// modified Wed Apr 3 10:41:20 2013.
+// modified Tue Apr 16 11:25:45 2013.
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/private/ppb_network_list_private.h"
#include "ppapi/shared_impl/tracked_callback.h"
#include "ppapi/thunk/enter.h"
#include "ppapi/thunk/ppb_instance_api.h"
-#include "ppapi/thunk/ppb_network_list_private_api.h"
+#include "ppapi/thunk/ppb_network_list_api.h"
#include "ppapi/thunk/resource_creation_api.h"
#include "ppapi/thunk/thunk.h"
@@ -21,13 +21,13 @@ namespace {
PP_Bool IsNetworkList(PP_Resource resource) {
VLOG(4) << "PPB_NetworkList_Private::IsNetworkList()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, false);
+ EnterResource<PPB_NetworkList_API> enter(resource, false);
return PP_FromBool(enter.succeeded());
}
uint32_t GetCount(PP_Resource resource) {
VLOG(4) << "PPB_NetworkList_Private::GetCount()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return 0;
return enter.object()->GetCount();
@@ -35,7 +35,7 @@ uint32_t GetCount(PP_Resource resource) {
struct PP_Var GetName(PP_Resource resource, uint32_t index) {
VLOG(4) << "PPB_NetworkList_Private::GetName()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return PP_MakeUndefined();
return enter.object()->GetName(index);
@@ -43,7 +43,7 @@ struct PP_Var GetName(PP_Resource resource, uint32_t index) {
PP_NetworkListType_Private GetType(PP_Resource resource, uint32_t index) {
VLOG(4) << "PPB_NetworkList_Private::GetType()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return PP_NETWORKLIST_UNKNOWN;
return enter.object()->GetType(index);
@@ -51,7 +51,7 @@ PP_NetworkListType_Private GetType(PP_Resource resource, uint32_t index) {
PP_NetworkListState_Private GetState(PP_Resource resource, uint32_t index) {
VLOG(4) << "PPB_NetworkList_Private::GetState()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return PP_NETWORKLIST_DOWN;
return enter.object()->GetState(index);
@@ -62,7 +62,7 @@ int32_t GetIpAddresses(PP_Resource resource,
struct PP_NetAddress_Private addresses[],
uint32_t count) {
VLOG(4) << "PPB_NetworkList_Private::GetIpAddresses()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return enter.retval();
return enter.object()->GetIpAddresses(index, addresses, count);
@@ -70,7 +70,7 @@ int32_t GetIpAddresses(PP_Resource resource,
struct PP_Var GetDisplayName(PP_Resource resource, uint32_t index) {
VLOG(4) << "PPB_NetworkList_Private::GetDisplayName()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return PP_MakeUndefined();
return enter.object()->GetDisplayName(index);
@@ -78,7 +78,7 @@ struct PP_Var GetDisplayName(PP_Resource resource, uint32_t index) {
uint32_t GetMTU(PP_Resource resource, uint32_t index) {
VLOG(4) << "PPB_NetworkList_Private::GetMTU()";
- EnterResource<PPB_NetworkList_Private_API> enter(resource, true);
+ EnterResource<PPB_NetworkList_API> enter(resource, true);
if (enter.failed())
return 0;
return enter.object()->GetMTU(index);