OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GDATA_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 // Removes a file or directory under |file_path| from in-memory snapshot of | 514 // Removes a file or directory under |file_path| from in-memory snapshot of |
515 // the file system and the corresponding file from cache if it exists. | 515 // the file system and the corresponding file from cache if it exists. |
516 // Return PLATFORM_FILE_OK if successful. | 516 // Return PLATFORM_FILE_OK if successful. |
517 GDataFileError RemoveEntryFromFileSystem(const FilePath& file_path); | 517 GDataFileError RemoveEntryFromFileSystem(const FilePath& file_path); |
518 | 518 |
519 // Updates whole directory structure feeds collected in |feed_list|. | 519 // Updates whole directory structure feeds collected in |feed_list|. |
520 // On success, returns PLATFORM_FILE_OK. Record file statistics as UMA | 520 // On success, returns PLATFORM_FILE_OK. Record file statistics as UMA |
521 // histograms. | 521 // histograms. |
522 GDataFileError UpdateFromFeed( | 522 GDataFileError UpdateFromFeed( |
523 const std::vector<DocumentFeed*>& feed_list, | 523 const std::vector<DocumentFeed*>& feed_list, |
524 ContentOrigin origin, | |
525 int largest_changestamp, | 524 int largest_changestamp, |
526 int root_feed_changestamp); | 525 int root_feed_changestamp); |
527 | 526 |
528 // Updates UMA histograms about file counts. | 527 // Updates UMA histograms about file counts. |
529 void UpdateFileCountUmaHistograms( | 528 void UpdateFileCountUmaHistograms( |
530 const FeedToFileResourceMapUmaStats& uma_stats) const; | 529 const FeedToFileResourceMapUmaStats& uma_stats) const; |
531 | 530 |
532 // Applies the pre-processed feed from |file_map| map onto the file system. | 531 // Applies the pre-processed feed from |file_map| map onto the file system. |
533 // All entries in |file_map| will be erased (i.e. the map becomes empty), | 532 // All entries in |file_map| will be erased (i.e. the map becomes empty), |
534 // and values are deleted. | 533 // and values are deleted. |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; | 935 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
937 | 936 |
938 ObserverList<Observer> observers_; | 937 ObserverList<Observer> observers_; |
939 | 938 |
940 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 939 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
941 }; | 940 }; |
942 | 941 |
943 } // namespace gdata | 942 } // namespace gdata |
944 | 943 |
945 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 944 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |