blob: 684ea3fb42a5a41e8eb8c6fbf6f27cc4e7b002e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2011 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.
function MetadataParser(parent) {
this.parent_ = parent;
this.verbose = parent.verbose;
}
MetadataParser.prototype.error = function(var_args) {
this.parent_.error.apply(this.parent_, arguments);
};
MetadataParser.prototype.log = function(var_args) {
this.parent_.log.apply(this.parent_, arguments);
};
MetadataParser.prototype.vlog = function(var_args) {
if (this.verbose)
this.parent_.log.apply(this.parent_, arguments);
};
|