OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ |
7 | 7 |
8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "ppapi/shared_impl/resource.h" |
9 #include "third_party/npapi/bindings/npruntime.h" | 10 #include "third_party/npapi/bindings/npruntime.h" |
10 #include "webkit/plugins/ppapi/resource.h" | |
11 | 11 |
12 struct PP_Var; | 12 struct PP_Var; |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 namespace ppapi { | 15 namespace ppapi { |
16 | 16 |
17 class PluginInstance; | 17 class PluginInstance; |
18 | 18 |
19 // MessageChannel implements bidirectional postMessage functionality, allowing | 19 // MessageChannel implements bidirectional postMessage functionality, allowing |
20 // calls from JavaScript to plugins and vice-versa. See | 20 // calls from JavaScript to plugins and vice-versa. See |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ScopedRunnableMethodFactory<MessageChannel> method_factory_; | 100 ScopedRunnableMethodFactory<MessageChannel> method_factory_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(MessageChannel); | 102 DISALLOW_COPY_AND_ASSIGN(MessageChannel); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace ppapi | 105 } // namespace ppapi |
106 } // namespace webkit | 106 } // namespace webkit |
107 | 107 |
108 #endif // WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ | 108 #endif // WEBKIT_PLUGINS_PPAPI_MESSAGE_CHANNEL_H_ |
109 | 109 |
OLD | NEW |