summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_api_frame_id_map.h
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2016-03-07 13:57:21 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-07 21:58:30 +0000
commit7e6264ce0f355de7894f8bbc525b55cd85ccfbb9 (patch)
tree89e05b5da994cffac6d3c69d1443345e6c8db096 /extensions/browser/extension_api_frame_id_map.h
parentd83168f09a52a990cea93ab20264f431a3adcbc8 (diff)
downloadchromium_src-7e6264ce0f355de7894f8bbc525b55cd85ccfbb9.zip
chromium_src-7e6264ce0f355de7894f8bbc525b55cd85ccfbb9.tar.gz
chromium_src-7e6264ce0f355de7894f8bbc525b55cd85ccfbb9.tar.bz2
[Extensions] Gather more metrics on our renderer state accumulators
Add a few more histograms to determine how our renderer state objects are doing in terms of cache misses and hits. This will be useful in figuring out if we can get rid of ExtensionRendererState (and with it, its use of RenderView). BUG=455776 Review URL: https://codereview.chromium.org/1762493002 Cr-Commit-Position: refs/heads/master@{#379657}
Diffstat (limited to 'extensions/browser/extension_api_frame_id_map.h')
-rw-r--r--extensions/browser/extension_api_frame_id_map.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/browser/extension_api_frame_id_map.h b/extensions/browser/extension_api_frame_id_map.h
index 6c661ff..d98cf88 100644
--- a/extensions/browser/extension_api_frame_id_map.h
+++ b/extensions/browser/extension_api_frame_id_map.h
@@ -159,7 +159,10 @@ class ExtensionApiFrameIdMap {
// virtual for testing.
virtual FrameData KeyToValue(const RenderFrameIdKey& key) const;
- FrameData LookupFrameDataOnUI(const RenderFrameIdKey& key);
+ // Looks up the data for the given |key| and adds it to the |frame_data_map_|.
+ // |for_lookup| indicates whether this is for a pending lookup (as opposed to
+ // preemptively caching the frame data).
+ FrameData LookupFrameDataOnUI(const RenderFrameIdKey& key, bool for_lookup);
// Called as soon as the frame ID is found for the given |key|, and runs all
// queued callbacks with |cached_frame_id_pair|.