summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/event_bindings.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/extensions/event_bindings.h')
-rw-r--r--chrome/renderer/extensions/event_bindings.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/event_bindings.h b/chrome/renderer/extensions/event_bindings.h
index a026c19..f2c5f88 100644
--- a/chrome/renderer/extensions/event_bindings.h
+++ b/chrome/renderer/extensions/event_bindings.h
@@ -20,6 +20,7 @@ class EventBindings {
// Allow RenderThread to be mocked out.
static void SetRenderThread(RenderThreadBase* thread);
+ static RenderThreadBase* GetRenderThread();
// Handle a script context coming / going away.
static void HandleContextCreated(WebFrame* frame);
@@ -30,6 +31,11 @@ class EventBindings {
// "chromium.Event.dispatch_".
static void CallFunction(const std::string& function_name, int argc,
v8::Handle<v8::Value>* argv);
+
+ // Handles a response to an API request.
+ static void HandleResponse(int request_id, bool success,
+ const std::string& response,
+ const std::string& error);
};
#endif // CHROME_RENDERER_EXTENSIONS_EVENT_BINDINGS_H_