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

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

Issue 445473002: Remove ResourceIdCanonicalizer from DriveServiceInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/chromeos/drive/drive.pb.h" 15 #include "chrome/browser/chromeos/drive/drive.pb.h"
16 #include "chrome/browser/chromeos/drive/file_errors.h" 16 #include "chrome/browser/chromeos/drive/file_errors.h"
17 #include "chrome/browser/drive/drive_service_interface.h"
18 17
19 namespace base { 18 namespace base {
20 class SequencedTaskRunner; 19 class SequencedTaskRunner;
21 } 20 }
22 21
23 namespace leveldb { 22 namespace leveldb {
24 class DB; 23 class DB;
25 class Iterator; 24 class Iterator;
26 } 25 }
27 26
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 RecoveredCacheInfo(); 73 RecoveredCacheInfo();
75 ~RecoveredCacheInfo(); 74 ~RecoveredCacheInfo();
76 75
77 bool is_dirty; 76 bool is_dirty;
78 std::string md5; 77 std::string md5;
79 std::string title; 78 std::string title;
80 }; 79 };
81 typedef std::map<std::string, RecoveredCacheInfo> RecoveredCacheInfoMap; 80 typedef std::map<std::string, RecoveredCacheInfo> RecoveredCacheInfoMap;
82 81
83 // Returns true if the DB was successfully upgraded to the newest version. 82 // Returns true if the DB was successfully upgraded to the newest version.
84 static bool UpgradeOldDB(const base::FilePath& directory_path, 83 static bool UpgradeOldDB(const base::FilePath& directory_path);
85 const ResourceIdCanonicalizer& id_canonicalizer);
86 84
87 ResourceMetadataStorage(const base::FilePath& directory_path, 85 ResourceMetadataStorage(const base::FilePath& directory_path,
88 base::SequencedTaskRunner* blocking_task_runner); 86 base::SequencedTaskRunner* blocking_task_runner);
89 87
90 const base::FilePath& directory_path() const { return directory_path_; } 88 const base::FilePath& directory_path() const { return directory_path_; }
91 89
92 // Returns true when cache entries were not loaded to the DB during 90 // Returns true when cache entries were not loaded to the DB during
93 // initialization. 91 // initialization.
94 bool cache_file_scan_is_needed() const { return cache_file_scan_is_needed_; } 92 bool cache_file_scan_is_needed() const { return cache_file_scan_is_needed_; }
95 93
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 163
166 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 164 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
167 165
168 DISALLOW_COPY_AND_ASSIGN(ResourceMetadataStorage); 166 DISALLOW_COPY_AND_ASSIGN(ResourceMetadataStorage);
169 }; 167 };
170 168
171 } // namespace internal 169 } // namespace internal
172 } // namespace drive 170 } // namespace drive
173 171
174 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_ 172 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_STORAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_interface.h ('k') | chrome/browser/chromeos/drive/resource_metadata_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698