From fbe51667207db9f146e05ece7f3643379d558c68 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Wed, 14 Sep 2011 23:37:53 +0000 Subject: Use enum instead of string to specify transport type. TEST=None BUG=41776 Review URL: http://codereview.chromium.org/7891014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101189 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/dev/transport_dev.cc | 4 ++-- ppapi/cpp/dev/transport_dev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ppapi/cpp') diff --git a/ppapi/cpp/dev/transport_dev.cc b/ppapi/cpp/dev/transport_dev.cc index e725838..6c163fd 100644 --- a/ppapi/cpp/dev/transport_dev.cc +++ b/ppapi/cpp/dev/transport_dev.cc @@ -23,10 +23,10 @@ template <> const char* interface_name() { Transport_Dev::Transport_Dev(Instance* instance, const char* name, - const char* proto) { + PP_TransportType type) { if (has_interface()) PassRefFromConstructor(get_interface()->CreateTransport( - instance->pp_instance(), name, proto)); + instance->pp_instance(), name, type)); } bool Transport_Dev::IsWritable() { diff --git a/ppapi/cpp/dev/transport_dev.h b/ppapi/cpp/dev/transport_dev.h index 9c8c302..cf0721e 100644 --- a/ppapi/cpp/dev/transport_dev.h +++ b/ppapi/cpp/dev/transport_dev.h @@ -16,7 +16,7 @@ class Var; class Transport_Dev : public Resource { public: - Transport_Dev(Instance* instance, const char* name, const char* proto); + Transport_Dev(Instance* instance, const char* name, PP_TransportType type); bool IsWritable(); int32_t SetProperty(PP_TransportProperty property, const Var& value); -- cgit v1.1