OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/plugins/pepper_transport.h" | 5 #include "webkit/glue/plugins/pepper_transport.h" |
6 | 6 |
7 #include "base/singleton.h" | 7 #include "base/singleton.h" |
8 #include "base/thread_local.h" | 8 #include "base/thread_local.h" |
9 #include "ppapi/c/dev/ppb_transport_dev.h" | 9 #include "ppapi/c/dev/ppb_transport_dev.h" |
10 #include "webkit/glue/plugins/pepper_common.h" | 10 #include "webkit/glue/plugins/pepper_common.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 const PPB_Transport_Dev* Transport::GetInterface() { | 125 const PPB_Transport_Dev* Transport::GetInterface() { |
126 return &ppb_transport; | 126 return &ppb_transport; |
127 } | 127 } |
128 | 128 |
129 Transport::~Transport() { | 129 Transport::~Transport() { |
130 // TODO(juberti): teardown | 130 // TODO(juberti): teardown |
131 } | 131 } |
132 | 132 |
| 133 Transport* Transport::AsTransport() { |
| 134 return this; |
| 135 } |
| 136 |
133 bool Transport::Init(const char* name, | 137 bool Transport::Init(const char* name, |
134 const char* proto) { | 138 const char* proto) { |
135 // TODO(juberti): impl | 139 // TODO(juberti): impl |
136 return false; | 140 return false; |
137 } | 141 } |
138 | 142 |
139 } // namespace pepper | 143 } // namespace pepper |
140 | 144 |
OLD | NEW |