OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ |
6 #define CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ | 6 #define CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
| 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" |
9 #include "content/child/npapi/np_channel_base.h" | 11 #include "content/child/npapi/np_channel_base.h" |
10 #include "ipc/ipc_channel_handle.h" | 12 #include "ipc/ipc_channel_handle.h" |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 class NPObjectBase; | 15 class NPObjectBase; |
14 | 16 |
15 // Encapsulates an IPC channel between the renderer and one plugin process. | 17 // Encapsulates an IPC channel between the renderer and one plugin process. |
16 // On the plugin side there's a corresponding PluginChannel. | 18 // On the plugin side there's a corresponding PluginChannel. |
17 class PluginChannelHost : public NPChannelBase { | 19 class PluginChannelHost : public NPChannelBase { |
18 public: | 20 public: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // True if we are expecting the plugin process to go away - in which case, | 68 // True if we are expecting the plugin process to go away - in which case, |
67 // don't treat it as a crash. | 69 // don't treat it as a crash. |
68 bool expecting_shutdown_; | 70 bool expecting_shutdown_; |
69 | 71 |
70 DISALLOW_COPY_AND_ASSIGN(PluginChannelHost); | 72 DISALLOW_COPY_AND_ASSIGN(PluginChannelHost); |
71 }; | 73 }; |
72 | 74 |
73 } // namespace content | 75 } // namespace content |
74 | 76 |
75 #endif // CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ | 77 #endif // CONTENT_RENDERER_NPAPI_PLUGIN_CHANNEL_HOST_H_ |
OLD | NEW |