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

Side by Side Diff: chrome/browser/chromeos/drive/resource_metadata_storage.h

Issue 15076004: Merge 199664 "As a part of switch back to GData WAPI, update DB ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 class ResourceMetadataHeader; 23 class ResourceMetadataHeader;
24 24
25 typedef base::Callback<void(const ResourceEntry& entry)> IterateCallback; 25 typedef base::Callback<void(const ResourceEntry& entry)> IterateCallback;
26 26
27 // Storage for ResourceMetadata which is responsible to manage entry info 27 // Storage for ResourceMetadata which is responsible to manage entry info
28 // and child-parent relationships between entries. 28 // and child-parent relationships between entries.
29 class ResourceMetadataStorage { 29 class ResourceMetadataStorage {
30 public: 30 public:
31 // This should be incremented when incompatibility change is made to DB 31 // This should be incremented when incompatibility change is made to DB
32 // format. 32 // format.
33 static const int kDBVersion = 5; 33 static const int kDBVersion = 6;
34 34
35 explicit ResourceMetadataStorage(const base::FilePath& directory_path); 35 explicit ResourceMetadataStorage(const base::FilePath& directory_path);
36 virtual ~ResourceMetadataStorage(); 36 virtual ~ResourceMetadataStorage();
37 37
38 // Initializes this object. 38 // Initializes this object.
39 bool Initialize(); 39 bool Initialize();
40 40
41 // Sets the largest changestamp. 41 // Sets the largest changestamp.
42 bool SetLargestChangestamp(int64 largest_changestamp); 42 bool SetLargestChangestamp(int64 largest_changestamp);
43 43
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Entries stored in this storage. 86 // Entries stored in this storage.
87 scoped_ptr<leveldb::DB> resource_map_; 87 scoped_ptr<leveldb::DB> resource_map_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(ResourceMetadataStorage); 89 DISALLOW_COPY_AND_ASSIGN(ResourceMetadataStorage);
90 }; 90 };
91 91
92 } // namespace drive 92 } // namespace drive
93 93
94 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698