diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 00:06:47 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 00:06:47 +0000 |
commit | 2f25d7b91d75afea74cf4ba9e3b2a2db0d853f50 (patch) | |
tree | f6d95141295b9b03d4961ad8063c44f2c09e8cce /chrome/renderer/extensions/extension_process_bindings.h | |
parent | 661feb7cadf6362ddd34f85b887ec8f4d24eeee9 (diff) | |
download | chromium_src-2f25d7b91d75afea74cf4ba9e3b2a2db0d853f50.zip chromium_src-2f25d7b91d75afea74cf4ba9e3b2a2db0d853f50.tar.gz chromium_src-2f25d7b91d75afea74cf4ba9e3b2a2db0d853f50.tar.bz2 |
Change the extension callback system to work more like events, where we track
contexts rather than frames.
Also change the way we call through to javascript, to avoid a v8::Compile.
This is so we don't skew the histogram stats on our script cache.
BUG=?
TEST=none
Review URL: http://codereview.chromium.org/119369
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/extension_process_bindings.h')
-rw-r--r-- | chrome/renderer/extensions/extension_process_bindings.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h index d5798cd..9639090 100644 --- a/chrome/renderer/extensions/extension_process_bindings.h +++ b/chrome/renderer/extensions/extension_process_bindings.h @@ -16,22 +16,12 @@ class WebFrame; class ExtensionProcessBindings { public: - struct CallContext { - public : - CallContext(WebFrame *frame, const std::string& name) - : frame_(frame), - name_(name) {} - WebFrame* frame_; - std::string name_; - }; - static void SetFunctionNames(const std::vector<std::string>& names); static v8::Extension* Get(); static void RegisterExtensionContext(WebFrame* frame); - static void ExecuteResponseInFrame(CallContext *call, int request_id, - bool success, - const std::string& response, - const std::string& error); + static void HandleResponse(int request_id, bool success, + const std::string& response, + const std::string& error); }; #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ |