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

Side by Side Diff: storage/browser/fileapi/sandbox_file_system_backend.cc

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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "storage/browser/fileapi/sandbox_file_system_backend.h" 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 FileSystemContext* context) const { 150 FileSystemContext* context) const {
151 DCHECK(CanHandleType(url.type())); 151 DCHECK(CanHandleType(url.type()));
152 DCHECK(delegate_); 152 DCHECK(delegate_);
153 return delegate_->CreateFileStreamWriter(url, offset, context, url.type()); 153 return delegate_->CreateFileStreamWriter(url, offset, context, url.type());
154 } 154 }
155 155
156 FileSystemQuotaUtil* SandboxFileSystemBackend::GetQuotaUtil() { 156 FileSystemQuotaUtil* SandboxFileSystemBackend::GetQuotaUtil() {
157 return delegate_; 157 return delegate_;
158 } 158 }
159 159
160 const UpdateObserverList* SandboxFileSystemBackend::GetUpdateObservers(
161 FileSystemType type) const {
162 return delegate_->GetUpdateObservers(type);
163 }
164
165 const ChangeObserverList* SandboxFileSystemBackend::GetChangeObservers(
166 FileSystemType type) const {
167 return delegate_->GetChangeObservers(type);
168 }
169
170 const AccessObserverList* SandboxFileSystemBackend::GetAccessObservers(
171 FileSystemType type) const {
172 return delegate_->GetAccessObservers(type);
173 }
174
160 SandboxFileSystemBackendDelegate::OriginEnumerator* 175 SandboxFileSystemBackendDelegate::OriginEnumerator*
161 SandboxFileSystemBackend::CreateOriginEnumerator() { 176 SandboxFileSystemBackend::CreateOriginEnumerator() {
162 DCHECK(delegate_); 177 DCHECK(delegate_);
163 return delegate_->CreateOriginEnumerator(); 178 return delegate_->CreateOriginEnumerator();
164 } 179 }
165 180
166 } // namespace storage 181 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_file_system_backend.h ('k') | storage/browser/fileapi/sandbox_file_system_backend_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698