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

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

Issue 12378077: Attempting to fix problems in 11571014. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 7 years, 10 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
« no previous file with comments | « chrome/renderer/extensions/request_sender.cc ('k') | chrome/renderer/extensions/send_request_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/send_request_natives.h
diff --git a/chrome/renderer/extensions/send_request_natives.h b/chrome/renderer/extensions/send_request_natives.h
index d8546f3928e4d6a48d236c75b5b5b036762a7e3b..1e3437a5e6a120d16536ddc1d2e746f3b3a40d1b 100644
--- a/chrome/renderer/extensions/send_request_natives.h
+++ b/chrome/renderer/extensions/send_request_natives.h
@@ -11,6 +11,7 @@
#include "v8/include/v8.h"
namespace extensions {
+class ChromeV8Context;
class RequestSender;
// Native functions exposed to extensions via JS for calling API functions in
@@ -23,10 +24,14 @@ class SendRequestNatives : public ChromeV8Extension {
private:
v8::Handle<v8::Value> GetNextRequestId(const v8::Arguments& args);
+
// Starts an API request to the browser, with an optional callback. The
// callback will be dispatched to EventBindings::HandleResponse.
v8::Handle<v8::Value> StartRequest(const v8::Arguments& args);
+ // Gets a reference to an object's global object.
+ v8::Handle<v8::Value> GetGlobal(const v8::Arguments& args);
+
RequestSender* request_sender_;
ChromeV8Context* context_;
« no previous file with comments | « chrome/renderer/extensions/request_sender.cc ('k') | chrome/renderer/extensions/send_request_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698