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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "webkit/common/fileapi/file_system_types.h" 11 #include "webkit/common/fileapi/file_system_types.h"
11 12
13 class GURL;
14
12 namespace base { 15 namespace base {
13 class Time; 16 class Time;
14 } // namespace base 17 } // namespace base
15 18
16 namespace storage { 19 namespace storage {
17 class AsyncFileUtil; 20 class AsyncFileUtil;
18 class FileSystemContext; 21 class FileSystemContext;
19 class FileStreamReader; 22 class FileStreamReader;
20 class FileSystemURL; 23 class FileSystemURL;
21 class FileStreamWriter; 24 class FileStreamWriter;
22 class WatcherManager; 25 class WatcherManager;
23 } // namespace storage 26 } // namespace storage
mtomasz 2014/09/04 06:18:51 nit: Not realted to this CL, but can be easily mer
hirono 2014/09/04 07:15:38 Done.
24 27
25 namespace storage { 28 namespace storage {
26 class FileStreamReader; 29 class FileStreamReader;
30 typedef base::Callback<void(const GURL&)> URLCallback;
mtomasz 2014/09/04 06:18:51 nit: This is already declared in webkit/browser/fi
hirono 2014/09/04 07:15:38 Done.
27 } // namespace storage 31 } // namespace storage
28 32
29 namespace chromeos { 33 namespace chromeos {
30 34
31 // This is delegate interface to inject the implementation of the some methods 35 // This is delegate interface to inject the implementation of the some methods
32 // of FileSystemBackend. 36 // of FileSystemBackend.
33 class FileSystemBackendDelegate { 37 class FileSystemBackendDelegate {
34 public: 38 public:
35 virtual ~FileSystemBackendDelegate() {} 39 virtual ~FileSystemBackendDelegate() {}
36 40
(...skipping 11 matching lines...) Expand all
48 // Called from FileSystemBackend::CreateFileStreamWriter(). 52 // Called from FileSystemBackend::CreateFileStreamWriter().
49 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 53 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
50 const storage::FileSystemURL& url, 54 const storage::FileSystemURL& url,
51 int64 offset, 55 int64 offset,
52 storage::FileSystemContext* context) = 0; 56 storage::FileSystemContext* context) = 0;
53 57
54 // Called from the FileSystemWatcherService class. The returned pointer must 58 // Called from the FileSystemWatcherService class. The returned pointer must
55 // stay valid until shutdown. 59 // stay valid until shutdown.
56 virtual storage::WatcherManager* GetWatcherManager( 60 virtual storage::WatcherManager* GetWatcherManager(
57 const storage::FileSystemURL& url) = 0; 61 const storage::FileSystemURL& url) = 0;
62
63 // Called from FileSystemBackend::GetRedirectURLForBrowserTab. Please ensure
64 // that the returned URL is secure. The URL is to be redirected to and opened
65 // in a browser tab.
mtomasz 2014/09/04 06:18:51 nit: Actually not only browser tab. It can be also
hirono 2014/09/04 07:15:38 Done.
66 virtual void GetRedirectURLForBrowserTab(
67 const storage::FileSystemURL& url,
68 const storage::URLCallback& callback) = 0;
58 }; 69 };
59 70
60 } // namespace chromeos 71 } // namespace chromeos
61 72
62 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 73 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698