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

Unified Diff: chrome/browser/media_gallery/media_gallery_database.h

Issue 12285012: Remove some dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | chrome/browser/media_gallery/media_gallery_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_gallery/media_gallery_database.h
diff --git a/chrome/browser/media_gallery/media_gallery_database.h b/chrome/browser/media_gallery/media_gallery_database.h
deleted file mode 100644
index 2bb654873574e1c5f51cfda6046bc5c6dfdbb687..0000000000000000000000000000000000000000
--- a/chrome/browser/media_gallery/media_gallery_database.h
+++ /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.
-
-#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_DATABASE_H_
-#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_DATABASE_H_
-
-#include "base/basictypes.h"
-#include "base/file_path.h"
-#include "chrome/browser/media_gallery/media_gallery_database_types.h"
-#include "sql/connection.h"
-#include "sql/init_status.h"
-#include "sql/meta_table.h"
-
-namespace chrome {
-
-// Encapsulates the SQL database that stores pre-parsed media gallery metadata
-// for search and retrieval.
-class MediaGalleryDatabase {
- public:
- MediaGalleryDatabase();
- virtual ~MediaGalleryDatabase();
-
- // Must call this function to complete initialization. Will return true on
- // success. On false, no other function should be called.
- sql::InitStatus Init(const base::FilePath& database_path);
-
- // Returns the current version that we will generate media gallery databases
- // with.
- static int GetCurrentVersion();
-
- // Sets the id field of the input collection_row to the generated unique
- // key value and returns the same. On failure, returns zero.
- int CreateCollectionRow(CollectionRow* collection_row);
-
- // Finds the row with the specified id and fills its data into the collection
- // pointer passed by the caller. Returns true on success.
- bool GetCollectionRow(CollectionId id, CollectionRow* collection);
-
- protected:
- virtual sql::Connection& GetDB();
-
- // Initializes an already open database.
- sql::InitStatus InitInternal(sql::Connection* db);
- static bool DoesCollectionsTableExist(sql::Connection* db);
-
- private:
- static bool CreateCollectionsTable(sql::Connection* db);
- sql::InitStatus EnsureCurrentVersion();
- void FillCollectionRow(const sql::Statement& statement, CollectionRow* row);
-
- sql::Connection db_;
- sql::MetaTable meta_table_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaGalleryDatabase);
-};
-
-} // namespace chrome
-
-std::ostream& operator<<(std::ostream& out, const chrome::CollectionRow& row);
-
-#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_DATABASE_H_
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_gallery_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698