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

Unified Diff: chrome/browser/chromeos/gdata/gdata_leveldb.h

Issue 10828163: gdata: Remove obsolete GDataDB related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove FromProtoString too Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.cc ('k') | chrome/browser/chromeos/gdata/gdata_leveldb.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_leveldb.h
diff --git a/chrome/browser/chromeos/gdata/gdata_leveldb.h b/chrome/browser/chromeos/gdata/gdata_leveldb.h
deleted file mode 100644
index de6b148ac84c5b4eff183cc5b7930641731bc492..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/gdata/gdata_leveldb.h
+++ /dev/null
@@ -1,61 +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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_LEVELDB_H_
-#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_LEVELDB_H_
-
-#include <leveldb/db.h>
-#include <string>
-
-#include "base/file_path.h"
-#include "chrome/browser/chromeos/gdata/gdata_db.h"
-
-namespace gdata {
-
-class GDataLevelDB : public GDataDB {
- public:
- GDataLevelDB();
-
- void Init(const FilePath& db_path);
-
- private:
- virtual ~GDataLevelDB();
-
- // GDataDB implementation.
- virtual Status Put(const GDataEntry& file) OVERRIDE;
- virtual Status DeleteByResourceId(const std::string& resource_id) OVERRIDE;
- virtual Status DeleteByPath(const FilePath& path) OVERRIDE;
- virtual Status GetByResourceId(const std::string& resource_id,
- scoped_ptr<GDataEntry>* file) OVERRIDE;
- virtual Status GetByPath(const FilePath& path,
- scoped_ptr<GDataEntry>* file) OVERRIDE;
- virtual scoped_ptr<GDataDBIter> CreateIterator(const FilePath& path) OVERRIDE;
- virtual Status PutRawForTesting(const std::string& resource_id,
- const std::string& raw_value) OVERRIDE;
-
- // Returns |resource_id| for |path| by looking up path_db_.
- Status ResourceIdForPath(const FilePath& path, std::string* resource_id);
-
- scoped_ptr<leveldb::DB> level_db_;
-};
-
-class GDataLevelDBIter : public GDataDBIter {
- public:
- GDataLevelDBIter(scoped_ptr<leveldb::Iterator> level_db_iter,
- GDataDB* db, const FilePath& path);
- private:
- virtual ~GDataLevelDBIter();
-
- // GDataDBIter implementation.
- virtual bool GetNext(std::string* path,
- scoped_ptr<GDataEntry>* entry) OVERRIDE;
-
- scoped_ptr<leveldb::Iterator> level_db_iter_;
- GDataDB* db_;
- const FilePath path_;
-};
-
-} // namespace gdata
-
-#endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_LEVELDB_H_
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.cc ('k') | chrome/browser/chromeos/gdata/gdata_leveldb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698