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

Side by Side Diff: extensions/renderer/resources/send_request.js

Issue 302463005: Add support for AMD to the extensions module system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
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 var handleUncaughtException = require('uncaught_exception_handler').handle; 5 var handleUncaughtException = require('uncaught_exception_handler').handle;
6 var lastError = require('lastError'); 6 var lastError = require('lastError');
7 var logging = requireNative('logging'); 7 var logging = requireNative('logging');
8 var natives = requireNative('sendRequest'); 8 var natives = requireNative('send_request_natives');
9 var processNatives = requireNative('process'); 9 var processNatives = requireNative('process');
10 var validate = require('schemaUtils').validate; 10 var validate = require('schemaUtils').validate;
11 11
12 // All outstanding requests from sendRequest(). 12 // All outstanding requests from sendRequest().
13 var requests = {}; 13 var requests = {};
14 14
15 // Used to prevent double Activity Logging for API calls that use both custom 15 // Used to prevent double Activity Logging for API calls that use both custom
16 // bindings and ExtensionFunctions (via sendRequest). 16 // bindings and ExtensionFunctions (via sendRequest).
17 var calledSendRequest = false; 17 var calledSendRequest = false;
18 18
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 exports.sendRequest = sendRequest; 171 exports.sendRequest = sendRequest;
172 exports.getCalledSendRequest = getCalledSendRequest; 172 exports.getCalledSendRequest = getCalledSendRequest;
173 exports.clearCalledSendRequest = clearCalledSendRequest; 173 exports.clearCalledSendRequest = clearCalledSendRequest;
174 exports.safeCallbackApply = safeCallbackApply; 174 exports.safeCallbackApply = safeCallbackApply;
175 exports.getExtensionStackTrace = getExtensionStackTrace; 175 exports.getExtensionStackTrace = getExtensionStackTrace;
176 176
177 // Called by C++. 177 // Called by C++.
178 exports.handleResponse = handleResponse; 178 exports.handleResponse = handleResponse;
OLDNEW
« no previous file with comments | « extensions/renderer/resources/runtime_custom_bindings.js ('k') | extensions/renderer/resources/set_icon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698