diff options
author | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 13:11:48 +0000 |
---|---|---|
committer | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 13:11:48 +0000 |
commit | 36122696bce983d5f01e9f97d0652fd075fc74ba (patch) | |
tree | 455be212926b0e77ff1c3f89f6ee2a77a5312cb0 /content/common/browser_plugin/browser_plugin_constants.cc | |
parent | 19cbf13dc344795b0cd81169a26a5fcb3f885b04 (diff) | |
download | chromium_src-36122696bce983d5f01e9f97d0652fd075fc74ba.zip chromium_src-36122696bce983d5f01e9f97d0652fd075fc74ba.tar.gz chromium_src-36122696bce983d5f01e9f97d0652fd075fc74ba.tar.bz2 |
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
Diffstat (limited to 'content/common/browser_plugin/browser_plugin_constants.cc')
-rw-r--r-- | content/common/browser_plugin/browser_plugin_constants.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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"; |