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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 9616055: Make a process-wide cache for the v8::Value representation of extension APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
Index: chrome/renderer/extensions/extension_dispatcher.h
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index 3a0d2c120283815b6392e1c4b28ae9712c1024a2..73af185e6ec0a8942fab255259fa25c292a47ff8 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -17,6 +17,7 @@
#include "chrome/common/extensions/feature.h"
#include "chrome/renderer/extensions/chrome_v8_context.h"
#include "chrome/renderer/extensions/chrome_v8_context_set.h"
+#include "chrome/renderer/extensions/v8_schema_registry.h"
#include "chrome/renderer/resource_bundle_source_map.h"
#include "v8/include/v8.h"
@@ -55,6 +56,9 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
return v8_context_set_;
}
UserScriptSlave* user_script_slave() { return user_script_slave_.get(); }
+ extensions::V8SchemaRegistry* v8_schema_registry() {
+ return &v8_schema_registry_;
+ }
bool IsExtensionActive(const std::string& extension_id) const;
@@ -198,6 +202,10 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
ResourceBundleSourceMap source_map_;
+ // Process-wide (since ExtensionDispatcher is process wide) cache for the v8
Aaron Boodman 2012/03/07 21:07:10 Don't add the bit about 'process-wide'. That is re
not at google - send to devlin 2012/03/08 00:00:33 Done.
+ // representation of extension API schemas.
+ extensions::V8SchemaRegistry v8_schema_registry_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698