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

Side by Side Diff: content/public/test/test_file_system_backend.cc

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS Created 6 years, 9 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 | Annotate | Revision Log
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 #include "content/public/test/test_file_system_backend.h" 5 #include "content/public/test/test_file_system_backend.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return &update_observers_; 130 return &update_observers_;
131 } 131 }
132 132
133 virtual const fileapi::ChangeObserverList* GetChangeObservers( 133 virtual const fileapi::ChangeObserverList* GetChangeObservers(
134 FileSystemType type) const OVERRIDE { 134 FileSystemType type) const OVERRIDE {
135 return &change_observers_; 135 return &change_observers_;
136 } 136 }
137 137
138 virtual const fileapi::AccessObserverList* GetAccessObservers( 138 virtual const fileapi::AccessObserverList* GetAccessObservers(
139 FileSystemType type) const OVERRIDE { 139 FileSystemType type) const OVERRIDE {
140 NOTIMPLEMENTED();
141 return NULL; 140 return NULL;
142 } 141 }
143 142
144 // FileUpdateObserver overrides. 143 // FileUpdateObserver overrides.
145 virtual void OnStartUpdate(const FileSystemURL& url) OVERRIDE {} 144 virtual void OnStartUpdate(const FileSystemURL& url) OVERRIDE {}
146 virtual void OnUpdate(const FileSystemURL& url, int64 delta) OVERRIDE { 145 virtual void OnUpdate(const FileSystemURL& url, int64 delta) OVERRIDE {
147 usage_ += delta; 146 usage_ += delta;
148 } 147 }
149 virtual void OnEndUpdate(const FileSystemURL& url) OVERRIDE {} 148 virtual void OnEndUpdate(const FileSystemURL& url) OVERRIDE {}
150 149
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return quota_util_->GetUpdateObservers(type); 257 return quota_util_->GetUpdateObservers(type);
259 } 258 }
260 259
261 void TestFileSystemBackend::AddFileChangeObserver( 260 void TestFileSystemBackend::AddFileChangeObserver(
262 fileapi::FileChangeObserver* observer) { 261 fileapi::FileChangeObserver* observer) {
263 quota_util_->AddFileChangeObserver( 262 quota_util_->AddFileChangeObserver(
264 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner()); 263 fileapi::kFileSystemTypeTest, observer, quota_util_->task_runner());
265 } 264 }
266 265
267 } // namespace content 266 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/test/test_file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698