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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_access_observer.h
diff --git a/webkit/browser/fileapi/file_access_observer.h b/webkit/browser/fileapi/file_access_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..8dda90c2a674a11daeb0f94e358d4e10c04c28b2
--- /dev/null
+++ b/webkit/browser/fileapi/file_access_observer.h
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
+#define WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
+
+namespace fileapi {
+
+class FileSystemURL;
+
+// An abstract interface to observe file access.
+// OnAccess is called whenever an operation reads file contents or metadata.
+// (It is called only once per operation regardless of whether the operation
+// is recursive or not)
+class FileAccessObserver {
+ public:
+ FileAccessObserver() {}
+ virtual ~FileAccessObserver() {}
+
+ virtual void OnAccess(const FileSystemURL& url) = 0;
jam 2013/10/08 16:07:29 btw we prefer callbacks instead of one method inte
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FileAccessObserver);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_BROWSER_FILEAPI_FILE_ACCESS_OBSERVER_H_
« 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