Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: content/plugin/plugin_channel.h

Issue 17208003: Track NPObject ownership by the originating plugins' NPP identifier. [4/6] (Chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECKs on proxy and stub maps. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_plugin.gypi ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/content_plugin.gypi ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698