OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ | 5 #ifndef CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ |
6 #define CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ | 6 #define CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "chrome/common/ipc_sync_channel.h" | |
16 #include "chrome/common/message_router.h" | 15 #include "chrome/common/message_router.h" |
| 16 #include "ipc/ipc_sync_channel.h" |
17 | 17 |
18 // Encapsulates an IPC channel between a renderer and a plugin process. | 18 // Encapsulates an IPC channel between a renderer and a plugin process. |
19 class PluginChannelBase : public IPC::Channel::Listener, | 19 class PluginChannelBase : public IPC::Channel::Listener, |
20 public IPC::Message::Sender, | 20 public IPC::Message::Sender, |
21 public base::RefCountedThreadSafe<PluginChannelBase> { | 21 public base::RefCountedThreadSafe<PluginChannelBase> { |
22 public: | 22 public: |
23 virtual ~PluginChannelBase(); | 23 virtual ~PluginChannelBase(); |
24 | 24 |
25 // WebPlugin[Delegate] call these on construction and destruction to setup | 25 // WebPlugin[Delegate] call these on construction and destruction to setup |
26 // the routing and manage lifetime of this object. This is also called by | 26 // the routing and manage lifetime of this object. This is also called by |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int in_dispatch_; | 113 int in_dispatch_; |
114 | 114 |
115 // If true, sync messages will only be marked as unblocking if the channel is | 115 // If true, sync messages will only be marked as unblocking if the channel is |
116 // in the middle of dispatching a message. | 116 // in the middle of dispatching a message. |
117 bool send_unblocking_only_during_dispatch_; | 117 bool send_unblocking_only_during_dispatch_; |
118 | 118 |
119 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelBase); | 119 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelBase); |
120 }; | 120 }; |
121 | 121 |
122 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ | 122 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ |
OLD | NEW |