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

Side by Side Diff: chrome/browser/chromeos/fileapi/file_system_backend_delegate.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "storage/browser/fileapi/file_system_backend.h" 13 #include "storage/browser/fileapi/file_system_backend.h"
13 #include "storage/common/fileapi/file_system_types.h" 14 #include "storage/common/fileapi/file_system_types.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace base { 18 namespace base {
18 class Time; 19 class Time;
19 } // namespace base 20 } // namespace base
20 21
21 namespace storage { 22 namespace storage {
(...skipping 11 matching lines...) Expand all
33 // of FileSystemBackend. 34 // of FileSystemBackend.
34 class FileSystemBackendDelegate { 35 class FileSystemBackendDelegate {
35 public: 36 public:
36 virtual ~FileSystemBackendDelegate() {} 37 virtual ~FileSystemBackendDelegate() {}
37 38
38 // Called from FileSystemBackend::GetAsyncFileUtil(). 39 // Called from FileSystemBackend::GetAsyncFileUtil().
39 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 40 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
40 storage::FileSystemType type) = 0; 41 storage::FileSystemType type) = 0;
41 42
42 // Called from FileSystemBackend::CreateFileStreamReader(). 43 // Called from FileSystemBackend::CreateFileStreamReader().
43 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 44 virtual std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader(
44 const storage::FileSystemURL& url, 45 const storage::FileSystemURL& url,
45 int64_t offset, 46 int64_t offset,
46 int64_t max_bytes_to_read, 47 int64_t max_bytes_to_read,
47 const base::Time& expected_modification_time, 48 const base::Time& expected_modification_time,
48 storage::FileSystemContext* context) = 0; 49 storage::FileSystemContext* context) = 0;
49 50
50 // Called from FileSystemBackend::CreateFileStreamWriter(). 51 // Called from FileSystemBackend::CreateFileStreamWriter().
51 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 52 virtual std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
52 const storage::FileSystemURL& url, 53 const storage::FileSystemURL& url,
53 int64_t offset, 54 int64_t offset,
54 storage::FileSystemContext* context) = 0; 55 storage::FileSystemContext* context) = 0;
55 56
56 // Called from the FileSystemWatcherService class. The returned pointer must 57 // Called from the FileSystemWatcherService class. The returned pointer must
57 // stay valid until shutdown. 58 // stay valid until shutdown.
58 virtual storage::WatcherManager* GetWatcherManager( 59 virtual storage::WatcherManager* GetWatcherManager(
59 storage::FileSystemType type) = 0; 60 storage::FileSystemType type) = 0;
60 61
61 // Called from FileSystemBackend::GetRedirectURLForContents. Please ensure 62 // Called from FileSystemBackend::GetRedirectURLForContents. Please ensure
62 // that the returned URL is secure to be opened in a browser tab, or referred 63 // that the returned URL is secure to be opened in a browser tab, or referred
63 // from <img>, <video>, XMLHttpRequest, etc... 64 // from <img>, <video>, XMLHttpRequest, etc...
64 virtual void GetRedirectURLForContents( 65 virtual void GetRedirectURLForContents(
65 const storage::FileSystemURL& url, 66 const storage::FileSystemURL& url,
66 const storage::URLCallback& callback) = 0; 67 const storage::URLCallback& callback) = 0;
67 }; 68 };
68 69
69 } // namespace chromeos 70 } // namespace chromeos
70 71
71 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698