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

Unified Diff: content/renderer/java/java_bridge_channel.h

Issue 18570003: Move Renderer-side NPObject owner tracking to JavaBridgeChannel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing include. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/java/java_bridge_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/java/java_bridge_channel.h
diff --git a/content/renderer/java/java_bridge_channel.h b/content/renderer/java/java_bridge_channel.h
index dbedceecf310801feb105d2c32f0dd1963dcd7ab..324a3a285b636918ca0a327eb7bb299414b3eff7 100644
--- a/content/renderer/java/java_bridge_channel.h
+++ b/content/renderer/java/java_bridge_channel.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_RENDERER_JAVA_JAVA_BRIDGE_CHANNEL_H_
#define CONTENT_RENDERER_JAVA_JAVA_BRIDGE_CHANNEL_H_
+#include "base/memory/scoped_ptr.h"
#include "content/child/np_channel_base.h"
#include "ipc/ipc_channel_handle.h"
@@ -30,6 +31,10 @@ class JavaBridgeChannel : public content::NPChannelBase {
static NPChannelBase* ClassFactory() { return new JavaBridgeChannel(); }
+ // Dummy NPObject owner Id used to track objects owned by the JavaBridge
+ // peer in the Browser process.
+ scoped_ptr<struct _NPP> peer_owner_id_;
+
DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannel);
};
« no previous file with comments | « no previous file | content/renderer/java/java_bridge_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698