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

Side by Side Diff: chrome/renderer/resources/extensions/sync_file_system_custom_bindings.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Custom binding for the syncFileSystem API. 5 // Custom binding for the syncFileSystem API.
6 6
7 var binding = require('binding').Binding.create('syncFileSystem'); 7 var binding = require('binding').Binding.create('syncFileSystem');
8 8
9 var eventBindings = require('event_bindings'); 9 var eventBindings = require('event_bindings');
10 var fileSystemNatives = requireNative('file_system_natives'); 10 var fileSystemNatives = requireNative('file_system_natives');
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 var fileInfo = new Object(); 97 var fileInfo = new Object();
98 fileInfo.fileEntry = fileEntry; 98 fileInfo.fileEntry = fileEntry;
99 fileInfo.status = args[1]; 99 fileInfo.status = args[1];
100 if (fileInfo.status == "synced") { 100 if (fileInfo.status == "synced") {
101 fileInfo.action = args[2]; 101 fileInfo.action = args[2];
102 fileInfo.direction = args[3]; 102 fileInfo.direction = args[3];
103 } 103 }
104 dispatch([fileInfo]); 104 dispatch([fileInfo]);
105 }); 105 });
106 106
107 exports.binding = binding.generate(); 107 exports.$set('binding', binding.generate());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698