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

Side by Side Diff: chrome/browser/media_galleries/fileapi/media_file_system_backend.h

Issue 549413003: [ew] Move operation observers from QuotaUtil to FileSystemBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/media_galleries/media_galleries_preferences.h" 14 #include "chrome/browser/media_galleries/media_galleries_preferences.h"
15 #include "storage/browser/fileapi/file_system_backend.h" 15 #include "storage/browser/fileapi/file_system_backend.h"
16 #include "storage/browser/fileapi/task_runner_bound_observer_list.h"
16 17
17 namespace base { 18 namespace base {
18 class SequencedTaskRunner; 19 class SequencedTaskRunner;
19 } 20 }
20 21
21 namespace storage { 22 namespace storage {
22 class FileSystemURL; 23 class FileSystemURL;
23 } 24 }
24 25
25 namespace net { 26 namespace net {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 78 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
78 const storage::FileSystemURL& url, 79 const storage::FileSystemURL& url,
79 int64 offset, 80 int64 offset,
80 const base::Time& expected_modification_time, 81 const base::Time& expected_modification_time,
81 storage::FileSystemContext* context) const OVERRIDE; 82 storage::FileSystemContext* context) const OVERRIDE;
82 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 83 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
83 const storage::FileSystemURL& url, 84 const storage::FileSystemURL& url,
84 int64 offset, 85 int64 offset,
85 storage::FileSystemContext* context) const OVERRIDE; 86 storage::FileSystemContext* context) const OVERRIDE;
86 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 87 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
88 virtual const storage::UpdateObserverList* GetUpdateObservers(
89 storage::FileSystemType type) const OVERRIDE;
90 virtual const storage::ChangeObserverList* GetChangeObservers(
91 storage::FileSystemType type) const OVERRIDE;
92 virtual const storage::AccessObserverList* GetAccessObservers(
93 storage::FileSystemType type) const OVERRIDE;
87 94
88 private: 95 private:
89 // Store the profile path. We need this to create temporary snapshot files. 96 // Store the profile path. We need this to create temporary snapshot files.
90 const base::FilePath profile_path_; 97 const base::FilePath profile_path_;
91 98
92 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; 99 scoped_refptr<base::SequencedTaskRunner> media_task_runner_;
93 100
94 scoped_ptr<MediaPathFilter> media_path_filter_; 101 scoped_ptr<MediaPathFilter> media_path_filter_;
95 scoped_ptr<storage::CopyOrMoveFileValidatorFactory> 102 scoped_ptr<storage::CopyOrMoveFileValidatorFactory>
96 media_copy_or_move_file_validator_factory_; 103 media_copy_or_move_file_validator_factory_;
97 104
98 scoped_ptr<storage::AsyncFileUtil> native_media_file_util_; 105 scoped_ptr<storage::AsyncFileUtil> native_media_file_util_;
99 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; 106 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
100 #if defined(OS_WIN) || defined(OS_MACOSX) 107 #if defined(OS_WIN) || defined(OS_MACOSX)
101 scoped_ptr<storage::AsyncFileUtil> picasa_file_util_; 108 scoped_ptr<storage::AsyncFileUtil> picasa_file_util_;
102 scoped_ptr<storage::AsyncFileUtil> itunes_file_util_; 109 scoped_ptr<storage::AsyncFileUtil> itunes_file_util_;
103 #endif // defined(OS_WIN) || defined(OS_MACOSX) 110 #endif // defined(OS_WIN) || defined(OS_MACOSX)
104 #if defined(OS_MACOSX) 111 #if defined(OS_MACOSX)
105 scoped_ptr<storage::AsyncFileUtil> iphoto_file_util_; 112 scoped_ptr<storage::AsyncFileUtil> iphoto_file_util_;
106 #endif // defined(OS_MACOSX) 113 #endif // defined(OS_MACOSX)
107 114
108 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); 115 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend);
109 }; 116 };
110 117
111 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ 118 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698