OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG
ATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG
ATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG
ATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DELEG
ATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" |
11 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_
util.h" | 12 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_
util.h" |
12 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root_map.h" | 13 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root_map.h" |
13 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 14 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
14 | 15 |
15 namespace arc { | 16 namespace arc { |
16 | 17 |
17 // Implements ARC documents provider filesystem. | 18 // Implements ARC documents provider filesystem. |
18 class ArcDocumentsProviderBackendDelegate | 19 class ArcDocumentsProviderBackendDelegate |
19 : public chromeos::FileSystemBackendDelegate { | 20 : public chromeos::FileSystemBackendDelegate { |
20 public: | 21 public: |
(...skipping 14 matching lines...) Expand all Loading... |
35 int64_t offset, | 36 int64_t offset, |
36 storage::FileSystemContext* context) override; | 37 storage::FileSystemContext* context) override; |
37 storage::WatcherManager* GetWatcherManager( | 38 storage::WatcherManager* GetWatcherManager( |
38 storage::FileSystemType type) override; | 39 storage::FileSystemType type) override; |
39 void GetRedirectURLForContents(const storage::FileSystemURL& url, | 40 void GetRedirectURLForContents(const storage::FileSystemURL& url, |
40 const storage::URLCallback& callback) override; | 41 const storage::URLCallback& callback) override; |
41 | 42 |
42 private: | 43 private: |
43 ArcDocumentsProviderRootMap roots_; | 44 ArcDocumentsProviderRootMap roots_; |
44 ArcDocumentsProviderAsyncFileUtil async_file_util_; | 45 ArcDocumentsProviderAsyncFileUtil async_file_util_; |
| 46 base::WeakPtrFactory<ArcDocumentsProviderBackendDelegate> weak_ptr_factory_; |
45 | 47 |
46 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderBackendDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderBackendDelegate); |
47 }; | 49 }; |
48 | 50 |
49 } // namespace arc | 51 } // namespace arc |
50 | 52 |
51 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DE
LEGATE_H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_BACKEND_DE
LEGATE_H_ |
OLD | NEW |