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

Side by Side Diff: extensions/renderer/send_request_natives.h

Issue 1543053002: Switch to standard integer types in extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-extensions-browser
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « extensions/renderer/scripts_run_info.h ('k') | extensions/renderer/send_request_natives.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_ 5 #ifndef EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_
6 #define EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_ 6 #define EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_
7 7
8 #include "base/macros.h"
8 #include "extensions/renderer/object_backed_native_handler.h" 9 #include "extensions/renderer/object_backed_native_handler.h"
9 #include "v8/include/v8.h" 10 #include "v8/include/v8.h"
10 11
11 namespace extensions { 12 namespace extensions {
12 class RequestSender; 13 class RequestSender;
13 class ScriptContext; 14 class ScriptContext;
14 15
15 // Native functions exposed to extensions via JS for calling API functions in 16 // Native functions exposed to extensions via JS for calling API functions in
16 // the browser. 17 // the browser.
17 class SendRequestNatives : public ObjectBackedNativeHandler { 18 class SendRequestNatives : public ObjectBackedNativeHandler {
18 public: 19 public:
19 SendRequestNatives(RequestSender* request_sender, ScriptContext* context); 20 SendRequestNatives(RequestSender* request_sender, ScriptContext* context);
20 21
21 private: 22 private:
22 // Starts an API request to the browser, with an optional callback. The 23 // Starts an API request to the browser, with an optional callback. The
23 // callback will be dispatched to EventBindings::HandleResponse. 24 // callback will be dispatched to EventBindings::HandleResponse.
24 void StartRequest(const v8::FunctionCallbackInfo<v8::Value>& args); 25 void StartRequest(const v8::FunctionCallbackInfo<v8::Value>& args);
25 26
26 // Gets a reference to an object's global object. 27 // Gets a reference to an object's global object.
27 void GetGlobal(const v8::FunctionCallbackInfo<v8::Value>& args); 28 void GetGlobal(const v8::FunctionCallbackInfo<v8::Value>& args);
28 29
29 RequestSender* request_sender_; 30 RequestSender* request_sender_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(SendRequestNatives); 32 DISALLOW_COPY_AND_ASSIGN(SendRequestNatives);
32 }; 33 };
33 34
34 } // namespace extensions 35 } // namespace extensions
35 36
36 #endif // EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_ 37 #endif // EXTENSIONS_RENDERER_SEND_REQUEST_NATIVES_H_
OLDNEW
« no previous file with comments | « extensions/renderer/scripts_run_info.h ('k') | extensions/renderer/send_request_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698