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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.h

Issue 134863003: [SyncFS] Refactor MetadataDatabase on dirty flag handling and sync-root creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testfix Created 6 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 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 void RemoveTracker(int64 tracker_id, leveldb::WriteBatch* batch); 396 void RemoveTracker(int64 tracker_id, leveldb::WriteBatch* batch);
397 void RemoveTrackerIgnoringSameTitle(int64 tracker_id, 397 void RemoveTrackerIgnoringSameTitle(int64 tracker_id,
398 leveldb::WriteBatch* batch); 398 leveldb::WriteBatch* batch);
399 void RemoveTrackerInternal(int64 tracker_id, 399 void RemoveTrackerInternal(int64 tracker_id,
400 leveldb::WriteBatch* batch, 400 leveldb::WriteBatch* batch,
401 bool ignoring_same_title); 401 bool ignoring_same_title);
402 void MaybeAddTrackersForNewFile(const FileMetadata& file, 402 void MaybeAddTrackersForNewFile(const FileMetadata& file,
403 leveldb::WriteBatch* batch); 403 leveldb::WriteBatch* batch);
404 404
405 void MarkSingleTrackerDirty(FileTracker* tracker, 405 void MarkSingleTrackerAsDirty(FileTracker* tracker,
406 leveldb::WriteBatch* batch); 406 leveldb::WriteBatch* batch);
407 void ClearDirty(FileTracker* tracker, leveldb::WriteBatch* batch);
407 void MarkTrackerSetDirty(TrackerSet* trackers, 408 void MarkTrackerSetDirty(TrackerSet* trackers,
408 leveldb::WriteBatch* batch); 409 leveldb::WriteBatch* batch);
409 void MarkTrackersDirtyByFileID(const std::string& file_id, 410 void MarkTrackersDirtyByFileID(const std::string& file_id,
410 leveldb::WriteBatch* batch); 411 leveldb::WriteBatch* batch);
411 void MarkTrackersDirtyByPath(int64 parent_tracker_id, 412 void MarkTrackersDirtyByPath(int64 parent_tracker_id,
412 const std::string& title, 413 const std::string& title,
413 leveldb::WriteBatch* batch); 414 leveldb::WriteBatch* batch);
414 415
415 void EraseTrackerFromFileIDIndex(FileTracker* tracker, 416 void EraseTrackerFromFileIDIndex(FileTracker* tracker,
416 leveldb::WriteBatch* batch); 417 leveldb::WriteBatch* batch);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 483
483 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_; 484 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_;
484 485
485 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase); 486 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase);
486 }; 487 };
487 488
488 } // namespace drive_backend 489 } // namespace drive_backend
489 } // namespace sync_file_system 490 } // namespace sync_file_system
490 491
491 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ 492 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698