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