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

Side by Side Diff: webkit/browser/fileapi/file_access_observer.h

Issue 26280007: Split file_observers.h into three files for each class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
7
8 namespace fileapi {
9
10 class FileSystemURL;
11
12 // An abstract interface to observe file access.
13 // OnAccess is called whenever an operation reads file contents or metadata.
14 // (It is called only once per operation regardless of whether the operation
15 // is recursive or not)
16 class FileAccessObserver {
17 public:
18 FileAccessObserver() {}
19 virtual ~FileAccessObserver() {}
20
21 virtual void OnAccess(const FileSystemURL& url) = 0;
jam 2013/10/08 16:07:29 btw we prefer callbacks instead of one method inte
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(FileAccessObserver);
25 };
26
27 } // namespace fileapi
28
29 #endif // WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/test/test_file_system_backend.cc ('k') | webkit/browser/fileapi/file_change_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698