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

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend_delegate.h

Issue 527773003: Add GetURLForBrowserTab method to the external file system backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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/chromeos/fileapi/file_system_backend_delegate.h
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend_delegate.h b/chrome/browser/chromeos/fileapi/file_system_backend_delegate.h
index b11c86a5ddefea8b979f70f08bffa79c3e15430d..9706f43b424f46f720dbdb2e4f76788a2496c8aa 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend_delegate.h
+++ b/chrome/browser/chromeos/fileapi/file_system_backend_delegate.h
@@ -6,9 +6,12 @@
#define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
#include "base/basictypes.h"
+#include "base/callback.h"
kinaba 2014/09/04 04:17:04 callback_forward.h
hirono 2014/09/04 04:29:09 Done.
#include "base/memory/scoped_ptr.h"
#include "webkit/common/fileapi/file_system_types.h"
+class GURL;
+
namespace base {
class Time;
} // namespace base
@@ -32,6 +35,8 @@ namespace chromeos {
// of FileSystemBackend.
class FileSystemBackendDelegate {
public:
+ typedef base::Callback<void(const GURL&)> URLCallback;
+
virtual ~FileSystemBackendDelegate() {}
// Called from FileSystemBackend::GetAsyncFileUtil().
@@ -55,6 +60,11 @@ class FileSystemBackendDelegate {
// stay valid until shutdown.
virtual storage::WatcherManager* GetWatcherManager(
const storage::FileSystemURL& url) = 0;
+
+ // Called from FileSystemBackend::GetURLForBrowserTab.
+ virtual void GetURLForBrowserTab(
+ const storage::FileSystemURL& url,
+ const URLCallback& callback) = 0;
};
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698