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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc

Issue 350683002: [fsp] Add notifications in case of slow operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h" 5 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "extensions/browser/event_router.h"
12 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
13 12
14 namespace chromeos { 13 namespace chromeos {
15 namespace file_system_provider { 14 namespace file_system_provider {
16 namespace { 15 namespace {
17 16
18 // Adds a fake entry to the entry list. 17 // Adds a fake entry to the entry list.
19 void AddDirectoryEntry(fileapi::AsyncFileUtil::EntryList* entry_list, 18 void AddDirectoryEntry(fileapi::AsyncFileUtil::EntryList* entry_list,
20 const std::string& name, 19 const std::string& name,
21 fileapi::DirectoryEntry::DirectoryEntryType type, 20 fileapi::DirectoryEntry::DirectoryEntryType type,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 const { 233 const {
235 return file_system_info_; 234 return file_system_info_;
236 } 235 }
237 236
238 RequestManager* FakeProvidedFileSystem::GetRequestManager() { 237 RequestManager* FakeProvidedFileSystem::GetRequestManager() {
239 NOTREACHED(); 238 NOTREACHED();
240 return NULL; 239 return NULL;
241 } 240 }
242 241
243 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( 242 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create(
244 extensions::EventRouter* event_router, 243 Profile* profile,
245 const ProvidedFileSystemInfo& file_system_info) { 244 const ProvidedFileSystemInfo& file_system_info) {
246 return new FakeProvidedFileSystem(file_system_info); 245 return new FakeProvidedFileSystem(file_system_info);
247 } 246 }
248 247
249 base::WeakPtr<ProvidedFileSystemInterface> 248 base::WeakPtr<ProvidedFileSystemInterface>
250 FakeProvidedFileSystem::GetWeakPtr() { 249 FakeProvidedFileSystem::GetWeakPtr() {
251 return weak_ptr_factory_.GetWeakPtr(); 250 return weak_ptr_factory_.GetWeakPtr();
252 } 251 }
253 252
254 } // namespace file_system_provider 253 } // namespace file_system_provider
255 } // namespace chromeos 254 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698