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

Unified Diff: chrome/browser/file_system/file_system_backend_client.h

Issue 3212002: Changes for browser-side implementation for file api.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/file_system/file_system_backend_client.h
===================================================================
--- chrome/browser/file_system/file_system_backend_client.h (revision 0)
+++ chrome/browser/file_system/file_system_backend_client.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2010 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 CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_
+#define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_
+
+#include <vector>
+
+#include "base/file_util_proxy.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebFileError.h"
+
+// Interface for client of FileSystemBackend.
+class FileSystemBackendClient {
+ public:
+ virtual ~FileSystemBackendClient() {}
+
+ virtual void DidFail(WebKit::WebFileError status, int request_id) = 0;
+
+ virtual void DidSucceed(int request_id) = 0;
+
+ // Info about the file entry such as modification date and size.
+ virtual void DidReadMetadata(const file_util::FileInfo& info,
+ int request_id) = 0;
+
+ virtual void DidReadDirectory(
+ const std::vector<base::file_util_proxy::Entry>& entries,
+ bool has_more,
+ int request_id) = 0;
+};
+
+#endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698