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 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_TRANSPORT_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_TRANSPORT_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_ |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
9 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
10 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 11 #include "webkit/plugins/ppapi/plugin_delegate.h" |
11 #include "webkit/glue/plugins/pepper_resource.h" | 12 #include "webkit/plugins/ppapi/resource.h" |
12 | 13 |
13 struct PPB_Transport_Dev; | 14 struct PPB_Transport_Dev; |
14 | 15 |
15 namespace pepper { | 16 namespace webkit { |
| 17 namespace ppapi { |
16 | 18 |
17 class Transport : public Resource { | 19 class PPB_Transport_Impl : public Resource { |
18 public: | 20 public: |
19 explicit Transport(PluginModule* module); | 21 explicit PPB_Transport_Impl(PluginModule* module); |
20 virtual ~Transport(); | 22 virtual ~PPB_Transport_Impl(); |
| 23 |
21 static const PPB_Transport_Dev* GetInterface(); | 24 static const PPB_Transport_Dev* GetInterface(); |
22 virtual Transport* AsTransport() { | 25 virtual PPB_Transport_Impl* AsPPB_Transport_Impl(); |
23 return this; | 26 |
24 } | |
25 bool Init(const char* name, | 27 bool Init(const char* name, |
26 const char* proto); | 28 const char* proto); |
| 29 |
27 private: | 30 private: |
28 | 31 DISALLOW_COPY_AND_ASSIGN(PPB_Transport_Impl); |
29 DISALLOW_COPY_AND_ASSIGN(Transport); | |
30 }; | 32 }; |
31 | 33 |
32 } // namespace pepper | 34 } // namespace ppapi |
| 35 } // namespace webkit |
33 | 36 |
34 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_TRANSPORT_H_ | 37 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_ |
35 | 38 |
OLD | NEW |