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

Side by Side Diff: content/child/npobject_stub.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/child/npobject_proxy.cc ('k') | content/child/npobject_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A class that receives IPC messages from an NPObjectProxy and calls the real 5 // A class that receives IPC messages from an NPObjectProxy and calls the real
6 // NPObject. 6 // NPObject.
7 7
8 #ifndef CONTENT_CHILD_NPOBJECT_STUB_H_ 8 #ifndef CONTENT_CHILD_NPOBJECT_STUB_H_
9 #define CONTENT_CHILD_NPOBJECT_STUB_H_ 9 #define CONTENT_CHILD_NPOBJECT_STUB_H_
10 10
(...skipping 22 matching lines...) Expand all
33 public NPObjectBase { 33 public NPObjectBase {
34 public: 34 public:
35 NPObjectStub(NPObject* npobject, 35 NPObjectStub(NPObject* npobject,
36 NPChannelBase* channel, 36 NPChannelBase* channel,
37 int route_id, 37 int route_id,
38 int render_view_id, 38 int render_view_id,
39 const GURL& page_url); 39 const GURL& page_url);
40 virtual ~NPObjectStub(); 40 virtual ~NPObjectStub();
41 41
42 // Schedules tear-down of this stub. The underlying NPObject reference is 42 // Schedules tear-down of this stub. The underlying NPObject reference is
43 // released, and further invokations form the IPC channel will fail once this 43 // released, and further invokations from the IPC channel will fail once this
44 // call has returned. Deletion of the stub is deferred to the main loop, in 44 // call has returned. Deletion of the stub is deferred to the main loop, in
45 // case it is touched as the stack unwinds. DeleteSoon() is safe to call 45 // case it is touched as the stack unwinds. DeleteSoon() is safe to call
46 // more than once, until control returns to the main loop. 46 // more than once, until control returns to the main loop.
47 void DeleteSoon(); 47 void DeleteSoon();
48 48
49 // IPC::Sender implementation: 49 // IPC::Sender implementation:
50 virtual bool Send(IPC::Message* msg) OVERRIDE; 50 virtual bool Send(IPC::Message* msg) OVERRIDE;
51 51
52 // NPObjectBase implementation. 52 // NPObjectBase implementation.
53 virtual NPObject* GetUnderlyingNPObject() OVERRIDE; 53 virtual NPObject* GetUnderlyingNPObject() OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int route_id_; 90 int route_id_;
91 int render_view_id_; 91 int render_view_id_;
92 92
93 // The url of the main frame hosting the plugin. 93 // The url of the main frame hosting the plugin.
94 GURL page_url_; 94 GURL page_url_;
95 }; 95 };
96 96
97 } // namespace content 97 } // namespace content
98 98
99 #endif // CONTENT_CHILD_NPOBJECT_STUB_H_ 99 #endif // CONTENT_CHILD_NPOBJECT_STUB_H_
OLDNEW
« no previous file with comments | « content/child/npobject_proxy.cc ('k') | content/child/npobject_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698