| 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" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ListenerMap npobject_listeners_; | 101 ListenerMap npobject_listeners_; |
| 102 | 102 |
| 103 // Used to implement message routing functionality to WebPlugin[Delegate] | 103 // Used to implement message routing functionality to WebPlugin[Delegate] |
| 104 // objects | 104 // objects |
| 105 MessageRouter router_; | 105 MessageRouter router_; |
| 106 | 106 |
| 107 // A channel is invalid if it is disconnected as a result of a channel | 107 // A channel is invalid if it is disconnected as a result of a channel |
| 108 // error. This flag is used to indicate the same. | 108 // error. This flag is used to indicate the same. |
| 109 bool channel_valid_; | 109 bool channel_valid_; |
| 110 | 110 |
| 111 // Track whether we're within a dispatch; works like a refcount, 0 when we're |
| 112 // not. |
| 113 int in_dispatch_; |
| 114 |
| 111 // 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 |
| 112 // in the middle of dispatching a message. | 116 // in the middle of dispatching a message. |
| 113 bool send_unblocking_only_during_dispatch_; | 117 bool send_unblocking_only_during_dispatch_; |
| 114 int in_dispatch_; | |
| 115 | 118 |
| 116 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelBase); | 119 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelBase); |
| 117 }; | 120 }; |
| 118 | 121 |
| 119 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ | 122 #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ |
| OLD | NEW |