| 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 "app/gfx/native_widget_types.h" |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/gfx/native_widget_types.h" | |
| 12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "chrome/common/message_router.h" | 16 #include "chrome/common/message_router.h" |
| 17 #include "ipc/ipc_sync_channel.h" | 17 #include "ipc/ipc_sync_channel.h" |
| 18 | 18 |
| 19 // Encapsulates an IPC channel between a renderer and a plugin process. | 19 // Encapsulates an IPC channel between a renderer and a plugin process. |
| 20 class PluginChannelBase : public IPC::Channel::Listener, | 20 class PluginChannelBase : public IPC::Channel::Listener, |
| 21 public IPC::Message::Sender, | 21 public IPC::Message::Sender, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 bool channel_valid_; | 112 bool channel_valid_; |
| 113 | 113 |
| 114 // Track whether we're within a dispatch; works like a refcount, 0 when we're | 114 // Track whether we're within a dispatch; works like a refcount, 0 when we're |
| 115 // not. | 115 // not. |
| 116 int in_dispatch_; | 116 int in_dispatch_; |
| 117 | 117 |
| 118 // If true, sync messages will only be marked as unblocking if the channel is | 118 // If true, sync messages will only be marked as unblocking if the channel is |
| 119 // in the middle of dispatching a message. | 119 // in the middle of dispatching a message. |
| 120 bool send_unblocking_only_during_dispatch_; | 120 bool send_unblocking_only_during_dispatch_; |
| 121 | 121 |
| 122 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelBase); | 122 DISALLOW_COPY_AND_ASSIGN(PluginChannelBase); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ | 125 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H_ |
| OLD | NEW |