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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h

Issue 656393002: [fsp] Pass proper data to Notify(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV ER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV ER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV ER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV ER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ChildChange(); 44 ChildChange();
45 ~ChildChange(); 45 ~ChildChange();
46 46
47 base::FilePath entry_path; 47 base::FilePath entry_path;
48 ChangeType change_type; 48 ChangeType change_type;
49 }; 49 };
50 50
51 // Called when an observed entry is changed, including removals. |callback| 51 // Called when an observed entry is changed, including removals. |callback|
52 // *must* be called after the entry change is handled. Once all observers 52 // *must* be called after the entry change is handled. Once all observers
53 // call the callback, the tag will be updated and OnObservedEntryTagUpdated 53 // call the callback, the tag will be updated and OnObservedEntryTagUpdated
54 // called. 54 // called. The reference to |child_changes| is valid at least as long as
55 // |callback|.
55 virtual void OnObservedEntryChanged( 56 virtual void OnObservedEntryChanged(
56 const ProvidedFileSystemInfo& file_system_info, 57 const ProvidedFileSystemInfo& file_system_info,
57 const base::FilePath& observed_path, 58 const base::FilePath& observed_path,
58 ChangeType change_type, 59 ChangeType change_type,
59 const ChildChanges& child_changes, 60 const ChildChanges& child_changes,
60 const base::Closure& callback) = 0; 61 const base::Closure& callback) = 0;
61 62
62 // Called when tag value is updated for the observed entry. 63 // Called when tag value is updated for the observed entry.
63 virtual void OnObservedEntryTagUpdated( 64 virtual void OnObservedEntryTagUpdated(
64 const ProvidedFileSystemInfo& file_system_info, 65 const ProvidedFileSystemInfo& file_system_info,
65 const base::FilePath& observed_path) = 0; 66 const base::FilePath& observed_path) = 0;
66 67
67 // Called when list of observed entries is changed. 68 // Called when list of observed entries is changed.
68 virtual void OnObservedEntryListChanged( 69 virtual void OnObservedEntryListChanged(
69 const ProvidedFileSystemInfo& file_system_info) = 0; 70 const ProvidedFileSystemInfo& file_system_info) = 0;
70 }; 71 };
71 72
72 } // namespace file_system_provider 73 } // namespace file_system_provider
73 } // namespace chromeos 74 } // namespace chromeos
74 75
75 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBS ERVER_H_ 76 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBS ERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698