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 COMPONENTS_DRIVE_FILE_CHANGE_H_ | 5 #ifndef COMPONENTS_DRIVE_FILE_CHANGE_H_ |
6 #define COMPONENTS_DRIVE_FILE_CHANGE_H_ | 6 #define COMPONENTS_DRIVE_FILE_CHANGE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 std::string DebugString() const; | 77 std::string DebugString() const; |
78 | 78 |
79 private: | 79 private: |
80 List list_; | 80 List list_; |
81 }; | 81 }; |
82 | 82 |
83 public: | 83 public: |
84 typedef std::map<base::FilePath, FileChange::ChangeList> Map; | 84 typedef std::map<base::FilePath, FileChange::ChangeList> Map; |
85 | 85 |
86 FileChange(); | 86 FileChange(); |
| 87 FileChange(const FileChange& other); |
87 ~FileChange(); | 88 ~FileChange(); |
88 | 89 |
89 void Update(const base::FilePath file_path, | 90 void Update(const base::FilePath file_path, |
90 const FileChange::Change& new_change); | 91 const FileChange::Change& new_change); |
91 void Update(const base::FilePath file_path, | 92 void Update(const base::FilePath file_path, |
92 const FileChange::ChangeList& list); | 93 const FileChange::ChangeList& list); |
93 void Update(const base::FilePath file_path, | 94 void Update(const base::FilePath file_path, |
94 FileType type, | 95 FileType type, |
95 FileChange::ChangeType change); | 96 FileChange::ChangeType change); |
96 void Update(const base::FilePath file_path, | 97 void Update(const base::FilePath file_path, |
(...skipping 13 matching lines...) Expand all Loading... |
110 | 111 |
111 std::string DebugString() const; | 112 std::string DebugString() const; |
112 | 113 |
113 private: | 114 private: |
114 Map map_; | 115 Map map_; |
115 }; | 116 }; |
116 | 117 |
117 } // namespace drive | 118 } // namespace drive |
118 | 119 |
119 #endif // COMPONENTS_DRIVE_FILE_CHANGE_H_ | 120 #endif // COMPONENTS_DRIVE_FILE_CHANGE_H_ |
OLD | NEW |