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

Side by Side Diff: chrome/renderer/resources/extensions/file_entry_binding_util.js

Issue 1840453002: [Extensions] More bindings hardening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 fileSystemNatives = requireNative('file_system_natives'); 5 var fileSystemNatives = requireNative('file_system_natives');
6 var GetIsolatedFileSystem = fileSystemNatives.GetIsolatedFileSystem; 6 var GetIsolatedFileSystem = fileSystemNatives.GetIsolatedFileSystem;
7 var sendRequest = require('sendRequest'); 7 var sendRequest = require('sendRequest');
8 var lastError = require('lastError'); 8 var lastError = require('lastError');
9 var GetModuleSystem = requireNative('v8_context').GetModuleSystem; 9 var GetModuleSystem = requireNative('v8_context').GetModuleSystem;
10 // TODO(sammc): Don't require extension. See http://crbug.com/235689. 10 // TODO(sammc): Don't require extension. See http://crbug.com/235689.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // requireNative is only allowed while lazily loading an API. 111 // requireNative is only allowed while lazily loading an API.
112 backgroundPage.chrome.fileSystem; 112 backgroundPage.chrome.fileSystem;
113 var bindFileEntryCallback = backgroundPageModuleSystem.require( 113 var bindFileEntryCallback = backgroundPageModuleSystem.require(
114 apiName).bindFileEntryCallback; 114 apiName).bindFileEntryCallback;
115 var entryIdManager = backgroundPageModuleSystem.require('entryIdManager'); 115 var entryIdManager = backgroundPageModuleSystem.require('entryIdManager');
116 } 116 }
117 return {bindFileEntryCallback: bindFileEntryCallback, 117 return {bindFileEntryCallback: bindFileEntryCallback,
118 entryIdManager: entryIdManager}; 118 entryIdManager: entryIdManager};
119 } 119 }
120 120
121 exports.getFileBindingsForApi = getFileBindingsForApi; 121 exports.$set('getFileBindingsForApi', getFileBindingsForApi);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698