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

Unified Diff: chrome/browser/chromeos/drive/change_list_processor.h

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
Index: chrome/browser/chromeos/drive/change_list_processor.h
diff --git a/chrome/browser/chromeos/drive/change_list_processor.h b/chrome/browser/chromeos/drive/change_list_processor.h
index 9bbf27dd337b04b2fa5822102db8a95453d76358..61ecf65bc2bb66e7d51dd06ef504e4157ea6db1c 100644
--- a/chrome/browser/chromeos/drive/change_list_processor.h
+++ b/chrome/browser/chromeos/drive/change_list_processor.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "chrome/browser/chromeos/drive/file_errors.h"
+#include "chrome/browser/chromeos/drive/file_errors.h"
#include "url/gurl.h"
namespace google_apis {
@@ -23,6 +24,7 @@ class FileList;
namespace drive {
+class FileChange;
class ResourceEntry;
namespace internal {
@@ -114,8 +116,8 @@ class ChangeListProcessor {
ScopedVector<ChangeList> change_lists,
bool is_delta_update);
- // The set of changed directories as a result of change list processing.
- const std::set<base::FilePath>& changed_dirs() const { return changed_dirs_; }
+ // The set of changed files as a result of change list processing.
+ const FileChange& changed_files() const { return *changed_files_; }
// Adds or refreshes the child entries from |change_list| to the directory.
static FileError RefreshDirectory(
@@ -152,7 +154,7 @@ class ChangeListProcessor {
ResourceEntryMap entry_map_;
ParentResourceIdMap parent_resource_id_map_;
- std::set<base::FilePath> changed_dirs_;
+ scoped_ptr<FileChange> changed_files_;
DISALLOW_COPY_AND_ASSIGN(ChangeListProcessor);
};
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader_unittest.cc ('k') | chrome/browser/chromeos/drive/change_list_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698