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

Side by Side Diff: chrome/browser/resources/file_manager/js/metadata/mpeg_parser.js

Issue 9583009: [File Manager] Cleanup: Moving js/css/html files to dedicated directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011->2012 Created 8 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 | Annotate | Revision Log
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 function MpegParser(parent) { 5 function MpegParser(parent) {
6 MetadataParser.call(this, parent, 'mpeg', /\.(mp4|m4v|m4a|mpe?g4?)$/i); 6 MetadataParser.call(this, parent, 'mpeg', /\.(mp4|m4v|m4a|mpe?g4?)$/i);
7 this.mimeType = 'video/mpeg'; 7 this.mimeType = 'video/mpeg';
8 } 8 }
9 9
10 MpegParser.prototype = {__proto__: MetadataParser.prototype}; 10 MpegParser.prototype = {__proto__: MetadataParser.prototype};
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // The previous read did not return the next atom header, EOF reached. 253 // The previous read did not return the next atom header, EOF reached.
254 this.vlog("EOF @" + filePos); 254 this.vlog("EOF @" + filePos);
255 onSuccess(); 255 onSuccess();
256 } 256 }
257 } catch(e) { 257 } catch(e) {
258 return onError(e.toString()); 258 return onError(e.toString());
259 } 259 }
260 }; 260 };
261 261
262 MetadataDispatcher.registerParserClass(MpegParser); 262 MetadataDispatcher.registerParserClass(MpegParser);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698