diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-30 20:51:01 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-30 20:51:01 +0000 |
commit | 308608cd64ab7012af9c3b8e2509ba7db51a3bd6 (patch) | |
tree | 330c0f52a9f3225c229cc481d64a65a0de5698f2 /chrome/browser/parsers/metadata_parser.h | |
parent | 5a7de14e6a2b7e742e7189b6fa6d0e641dd2017d (diff) | |
download | chromium_src-308608cd64ab7012af9c3b8e2509ba7db51a3bd6.zip chromium_src-308608cd64ab7012af9c3b8e2509ba7db51a3bd6.tar.gz chromium_src-308608cd64ab7012af9c3b8e2509ba7db51a3bd6.tar.bz2 |
Cleanup: Remove unused metadata parser code.
BUG=76745
Review URL: https://codereview.chromium.org/343343005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/parsers/metadata_parser.h')
-rw-r--r-- | chrome/browser/parsers/metadata_parser.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/chrome/browser/parsers/metadata_parser.h b/chrome/browser/parsers/metadata_parser.h deleted file mode 100644 index 8034a36..0000000 --- a/chrome/browser/parsers/metadata_parser.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2010 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. - -#ifndef CHROME_BROWSER_PARSERS_METADATA_PARSER_H_ -#define CHROME_BROWSER_PARSERS_METADATA_PARSER_H_ - -#include <string> - -namespace base { -class FilePath; -} - -// Allows for Iteration on the Properties of a given file. -class MetadataPropertyIterator { - public: - MetadataPropertyIterator() {} - virtual ~MetadataPropertyIterator() {} - - - // Gets the next Property in the iterator. Returns false if at the end - // of the list. - virtual bool GetNext(std::string* key, std::string* value) = 0; - - // Gets the number of Properties in this iterator. - virtual int Length() = 0; - - // Checks to see if we're at the end of the list. - virtual bool IsEnd() = 0; -}; - -// Represents a single instance of parsing on a particular file. -class MetadataParser { - public: - explicit MetadataParser(const base::FilePath& path) {} - virtual ~MetadataParser() {} - - - static const char* kPropertyType; - static const char* kPropertyFilesize; - static const char* kPropertyTitle; - - // Does all the heavy work of parsing out the file. Blocking until complete. - virtual bool Parse() = 0; - - // Gets a particular property found in a parse call. - virtual bool GetProperty(const std::string& key, std::string* value) = 0; - - // Gets an interator allowing you to iterate over all the properties found - // in a parse call. - virtual MetadataPropertyIterator* GetPropertyIterator() = 0; -}; - -#endif // CHROME_BROWSER_PARSERS_METADATA_PARSER_H_ |