summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-14 23:44:05 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-14 23:44:05 +0000
commit947960c2f6a85573c97c70dd6f8a7b79faeb56f3 (patch)
treeb291d3077debb299bf260b60b3e241dd71876d2c /ppapi/cpp
parentc404564277fa3cd5713efa6966287c072b489a87 (diff)
downloadchromium_src-947960c2f6a85573c97c70dd6f8a7b79faeb56f3.zip
chromium_src-947960c2f6a85573c97c70dd6f8a7b79faeb56f3.tar.gz
chromium_src-947960c2f6a85573c97c70dd6f8a7b79faeb56f3.tar.bz2
Revert 101189 - Use enum instead of string to specify transport type.
TEST=None BUG=41776 Review URL: http://codereview.chromium.org/7891014 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/7901002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/dev/transport_dev.cc4
-rw-r--r--ppapi/cpp/dev/transport_dev.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ppapi/cpp/dev/transport_dev.cc b/ppapi/cpp/dev/transport_dev.cc
index 6c163fd..e725838 100644
--- a/ppapi/cpp/dev/transport_dev.cc
+++ b/ppapi/cpp/dev/transport_dev.cc
@@ -23,10 +23,10 @@ template <> const char* interface_name<PPB_Transport_Dev>() {
Transport_Dev::Transport_Dev(Instance* instance,
const char* name,
- PP_TransportType type) {
+ const char* proto) {
if (has_interface<PPB_Transport_Dev>())
PassRefFromConstructor(get_interface<PPB_Transport_Dev>()->CreateTransport(
- instance->pp_instance(), name, type));
+ instance->pp_instance(), name, proto));
}
bool Transport_Dev::IsWritable() {
diff --git a/ppapi/cpp/dev/transport_dev.h b/ppapi/cpp/dev/transport_dev.h
index cf0721e..9c8c302 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, PP_TransportType type);
+ Transport_Dev(Instance* instance, const char* name, const char* proto);
bool IsWritable();
int32_t SetProperty(PP_TransportProperty property, const Var& value);