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 void OnDidAbortLoading(int render_view_id); | 85 void OnDidAbortLoading(int render_view_id); |
86 | 86 |
87 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; | 87 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; |
88 | 88 |
89 ScopedChildProcessReference process_ref_; | 89 ScopedChildProcessReference process_ref_; |
90 | 90 |
91 // The id of the renderer who is on the other side of the channel. | 91 // The id of the renderer who is on the other side of the channel. |
92 int renderer_id_; | 92 int renderer_id_; |
93 | 93 |
94 int in_send_; // Tracks if we're in a Send call. | 94 int in_send_; // Tracks if we're in a Send call. |
| 95 bool log_messages_; // True if we should log sent and received messages. |
95 bool incognito_; // True if the renderer is in incognito mode. | 96 bool incognito_; // True if the renderer is in incognito mode. |
96 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. | 97 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. |
97 | 98 |
98 // Dummy NPP value used in the plugin process to represent entities other | 99 // Dummy NPP value used in the plugin process to represent entities other |
99 // that other plugin instances for the purpose of object ownership tracking. | 100 // that other plugin instances for the purpose of object ownership tracking. |
100 scoped_ptr<struct _NPP> npp_; | 101 scoped_ptr<struct _NPP> npp_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(PluginChannel); | 103 DISALLOW_COPY_AND_ASSIGN(PluginChannel); |
103 }; | 104 }; |
104 | 105 |
105 } // namespace content | 106 } // namespace content |
106 | 107 |
107 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 108 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
OLD | NEW |