From 36122696bce983d5f01e9f97d0652fd075fc74ba Mon Sep 17 00:00:00 2001 From: "fsamuel@chromium.org" Date: Wed, 10 Jul 2013 13:11:48 +0000 Subject: Browser Plugin: Change internal API to track V8 object lifetime This is the first step towards moving the permission API and New Window API out of content and into chrome. This CL decouples v8 object lifetime tracking from the permission API. In particular, when a tracked object goes away an -internal-trackedObjectGone event fires that allows the content embedder to do any necessary cleanup, if necessary such as deny the permission request in the case of the permission API BUG=166165 Test=WebViewTest.GeolocationRequestGone Review URL: https://chromiumcodereview.appspot.com/18265007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210825 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/browser_plugin/browser_plugin_constants.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'content/common/browser_plugin/browser_plugin_constants.cc') diff --git a/content/common/browser_plugin/browser_plugin_constants.cc b/content/common/browser_plugin/browser_plugin_constants.cc index c26dccb..0f80f56 100644 --- a/content/common/browser_plugin/browser_plugin_constants.cc +++ b/content/common/browser_plugin/browser_plugin_constants.cc @@ -22,11 +22,13 @@ const char kMethodTerminate[] = "terminate"; // Internal method bindings. const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; -const char kMethodInternalPersistObject[] = "-internal-persistObject"; +const char kMethodInternalTrackObjectLifetime[] = + "-internal-trackObjectLifetime"; const char kMethodInternalSetPermission[] = "-internal-setPermission"; // Internal events. const char kEventInternalAttached[] = "attached"; +const char kEventInternalTrackedObjectGone[] = "trackedobjectgone"; // Attributes. const char kAttributeApi[] = "api"; @@ -42,8 +44,6 @@ const char kAttributeSrc[] = "src"; // Events. const char kEventExit[] = "exit"; -const char kEventLoadAbort[] = "loadabort"; -const char kEventLoadStart[] = "loadstart"; const char kEventNewWindow[] = "newwindow"; const char kEventRequestPermission[] = "permissionrequest"; const char kEventResponsive[] = "responsive"; @@ -51,6 +51,7 @@ const char kEventSizeChanged[] = "sizechanged"; const char kEventUnresponsive[] = "unresponsive"; // Parameters/properties on events. +const char kId[] = "id"; const char kInitialHeight[] = "initialHeight"; const char kInitialWidth[] = "initialWidth"; const char kIsTopLevel[] = "isTopLevel"; -- cgit v1.1