summaryrefslogtreecommitdiffstats
path: root/content/plugin
diff options
context:
space:
mode:
authorjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 18:09:17 +0000
committerjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 18:09:17 +0000
commita5f73fea37577eb8a796ca2fb3bc3e5a415ae8f2 (patch)
treeaaa4131e03ff7b0c4ecbaaf41ac75c556d0f6fd9 /content/plugin
parentc2bc226b65ccdb195cb0646ee8baac68f3264a21 (diff)
downloadchromium_src-a5f73fea37577eb8a796ca2fb3bc3e5a415ae8f2.zip
chromium_src-a5f73fea37577eb8a796ca2fb3bc3e5a415ae8f2.tar.gz
chromium_src-a5f73fea37577eb8a796ca2fb3bc3e5a415ae8f2.tar.bz2
Track (and eventually cap) Flash JIT size
BUG=113891 Review URL: http://codereview.chromium.org/9386003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin')
-rw-r--r--content/plugin/webplugin_proxy.cc7
-rw-r--r--content/plugin/webplugin_proxy.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 5b0ac6d..d664c5c 100644
--- a/content/plugin/webplugin_proxy.cc
+++ b/content/plugin/webplugin_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -142,6 +142,11 @@ void WebPluginProxy::ReparentPluginWindow(HWND window, HWND parent) {
PluginThread::current()->Send(
new PluginProcessHostMsg_ReparentPluginWindow(window, parent));
}
+
+void WebPluginProxy::ReportExecutableMemory(size_t size) {
+ PluginThread::current()->Send(
+ new PluginProcessHostMsg_ReportExecutableMemory(size));
+}
#endif
void WebPluginProxy::CancelResource(unsigned long id) {
diff --git a/content/plugin/webplugin_proxy.h b/content/plugin/webplugin_proxy.h
index 33b404d..cbf305a 100644
--- a/content/plugin/webplugin_proxy.h
+++ b/content/plugin/webplugin_proxy.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -68,6 +68,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
#if defined(OS_WIN)
void SetWindowlessPumpEvent(HANDLE pump_messages_event);
void ReparentPluginWindow(HWND window, HWND parent);
+ void ReportExecutableMemory(size_t size);
#endif
virtual void CancelResource(unsigned long id) OVERRIDE;