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

Unified Diff: chrome/browser/resources/file_manager/js/metadata/metadata_parser.js

Issue 39123003: [Files.app] Split the JavaScript files into subdirectories: common, background, and foreground (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test failure. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/js/metadata/metadata_parser.js
diff --git a/chrome/browser/resources/file_manager/js/metadata/metadata_parser.js b/chrome/browser/resources/file_manager/js/metadata/metadata_parser.js
deleted file mode 100644
index 087eb42a9aa37e0ed5f326b504be123c9948fd75..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/file_manager/js/metadata/metadata_parser.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-'use strict';
-
-/**
- * @param {MetadataDispatcher} parent Parent object.
- * @param {string} type Parser type.
- * @param {RegExp} urlFilter RegExp to match URLs.
- * @constructor
- */
-function MetadataParser(parent, type, urlFilter) {
- this.parent_ = parent;
- this.type = type;
- this.urlFilter = urlFilter;
- this.verbose = parent.verbose;
- this.mimeType = 'unknown';
-}
-
-/**
- * Output an error message.
- * @param {...Object} var_args Arguments.
- */
-MetadataParser.prototype.error = function(var_args) {
- this.parent_.error.apply(this.parent_, arguments);
-};
-
-/**
- * Output a log message.
- * @param {...Object} var_args Arguments.
- */
-MetadataParser.prototype.log = function(var_args) {
- this.parent_.log.apply(this.parent_, arguments);
-};
-
-/**
- * Output a log message if |verbose| flag is on.
- * @param {...Object} var_args Arguments.
- */
-MetadataParser.prototype.vlog = function(var_args) {
- if (this.verbose)
- this.parent_.log.apply(this.parent_, arguments);
-};
-
-/**
- * @return {Object} Metadata object with the minimal set of properties.
- */
-MetadataParser.prototype.createDefaultMetadata = function() {
- return {
- type: this.type,
- mimeType: this.mimeType
- };
-};
-
-/* Base class for image metadata parsers */
-function ImageParser(parent, type, urlFilter) {
- MetadataParser.apply(this, arguments);
- this.mimeType = 'image/' + this.type;
-}
-
-ImageParser.prototype = {__proto__: MetadataParser.prototype};

Powered by Google App Engine
This is Rietveld 408576698