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

Side by Side Diff: chrome/browser/chromeos/fileapi/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
« no previous file with comments | « no previous file | chrome/browser/chromeos/fileapi/file_system_backend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "storage/browser/fileapi/file_system_backend.h" 14 #include "storage/browser/fileapi/file_system_backend.h"
15 #include "storage/browser/fileapi/task_runner_bound_observer_list.h"
15 #include "storage/browser/quota/special_storage_policy.h" 16 #include "storage/browser/quota/special_storage_policy.h"
16 #include "storage/common/fileapi/file_system_types.h" 17 #include "storage/common/fileapi/file_system_types.h"
17 18
18 namespace storage { 19 namespace storage {
19 class CopyOrMoveFileValidatorFactory; 20 class CopyOrMoveFileValidatorFactory;
20 class ExternalMountPoints; 21 class ExternalMountPoints;
21 class FileSystemURL; 22 class FileSystemURL;
22 class WatcherManager; 23 class WatcherManager;
23 } // namespace storage 24 } // namespace storage
24 25
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 111 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
111 const storage::FileSystemURL& path, 112 const storage::FileSystemURL& path,
112 int64 offset, 113 int64 offset,
113 const base::Time& expected_modification_time, 114 const base::Time& expected_modification_time,
114 storage::FileSystemContext* context) const OVERRIDE; 115 storage::FileSystemContext* context) const OVERRIDE;
115 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 116 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
116 const storage::FileSystemURL& url, 117 const storage::FileSystemURL& url,
117 int64 offset, 118 int64 offset,
118 storage::FileSystemContext* context) const OVERRIDE; 119 storage::FileSystemContext* context) const OVERRIDE;
119 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 120 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
121 virtual const storage::UpdateObserverList* GetUpdateObservers(
122 storage::FileSystemType type) const OVERRIDE;
123 virtual const storage::ChangeObserverList* GetChangeObservers(
124 storage::FileSystemType type) const OVERRIDE;
125 virtual const storage::AccessObserverList* GetAccessObservers(
126 storage::FileSystemType type) const OVERRIDE;
120 127
121 // storage::ExternalFileSystemBackend overrides. 128 // storage::ExternalFileSystemBackend overrides.
122 virtual bool IsAccessAllowed( 129 virtual bool IsAccessAllowed(
123 const storage::FileSystemURL& url) const OVERRIDE; 130 const storage::FileSystemURL& url) const OVERRIDE;
124 virtual std::vector<base::FilePath> GetRootDirectories() const OVERRIDE; 131 virtual std::vector<base::FilePath> GetRootDirectories() const OVERRIDE;
125 virtual void GrantFullAccessToExtension( 132 virtual void GrantFullAccessToExtension(
126 const std::string& extension_id) OVERRIDE; 133 const std::string& extension_id) OVERRIDE;
127 virtual void GrantFileAccessToExtension( 134 virtual void GrantFileAccessToExtension(
128 const std::string& extension_id, 135 const std::string& extension_id,
129 const base::FilePath& virtual_path) OVERRIDE; 136 const base::FilePath& virtual_path) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Globally visible mount points. System MountPonts instance should outlive 172 // Globally visible mount points. System MountPonts instance should outlive
166 // all FileSystemBackend instances, so raw pointer is safe. 173 // all FileSystemBackend instances, so raw pointer is safe.
167 storage::ExternalMountPoints* system_mount_points_; 174 storage::ExternalMountPoints* system_mount_points_;
168 175
169 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); 176 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend);
170 }; 177 };
171 178
172 } // namespace chromeos 179 } // namespace chromeos
173 180
174 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 181 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/fileapi/file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698