| 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_PLUGIN_PLUGIN_CHANNEL_H_ | 5 #ifndef CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| 6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_handle.h" | 10 #include "base/memory/scoped_handle.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; | 85 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; |
| 86 | 86 |
| 87 // The id of the renderer who is on the other side of the channel. | 87 // The id of the renderer who is on the other side of the channel. |
| 88 int renderer_id_; | 88 int renderer_id_; |
| 89 | 89 |
| 90 int in_send_; // Tracks if we're in a Send call. | 90 int in_send_; // Tracks if we're in a Send call. |
| 91 bool log_messages_; // True if we should log sent and received messages. | 91 bool log_messages_; // True if we should log sent and received messages. |
| 92 bool incognito_; // True if the renderer is in incognito mode. | 92 bool incognito_; // True if the renderer is in incognito mode. |
| 93 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. | 93 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. |
| 94 | 94 |
| 95 // Dummy NPP value used in the plugin process to represent entities other |
| 96 // that other plugin instances for the purpose of object ownership tracking. |
| 97 scoped_ptr<struct _NPP> npp_; |
| 98 |
| 95 DISALLOW_COPY_AND_ASSIGN(PluginChannel); | 99 DISALLOW_COPY_AND_ASSIGN(PluginChannel); |
| 96 }; | 100 }; |
| 97 | 101 |
| 98 } // namespace content | 102 } // namespace content |
| 99 | 103 |
| 100 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 104 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| OLD | NEW |