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

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

Issue 284443002: [fsp] Add support for opening files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
7 7
8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // ProvidedFileSystemInterface overrides. 28 // ProvidedFileSystemInterface overrides.
29 virtual void RequestUnmount( 29 virtual void RequestUnmount(
30 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 30 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
31 virtual void GetMetadata( 31 virtual void GetMetadata(
32 const base::FilePath& entry_path, 32 const base::FilePath& entry_path,
33 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE; 33 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE;
34 virtual void ReadDirectory( 34 virtual void ReadDirectory(
35 const base::FilePath& directory_path, 35 const base::FilePath& directory_path,
36 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; 36 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE;
37 virtual void OpenFile(
38 const base::FilePath& file_path,
39 OpenFileMode mode,
40 bool create,
41 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
37 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 42 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
38 virtual RequestManager* GetRequestManager() OVERRIDE; 43 virtual RequestManager* GetRequestManager() OVERRIDE;
39 44
40 // Factory callback, to be used in Service::SetFileSystemFactory(). The 45 // Factory callback, to be used in Service::SetFileSystemFactory(). The
41 // |event_router| argument can be NULL. 46 // |event_router| argument can be NULL.
42 static ProvidedFileSystemInterface* Create( 47 static ProvidedFileSystemInterface* Create(
43 extensions::EventRouter* event_router, 48 extensions::EventRouter* event_router,
44 const ProvidedFileSystemInfo& file_system_info); 49 const ProvidedFileSystemInfo& file_system_info);
45 50
46 private: 51 private:
47 ProvidedFileSystemInfo file_system_info_; 52 ProvidedFileSystemInfo file_system_info_;
48 53
49 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 54 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
50 }; 55 };
51 56
52 } // namespace file_system_provider 57 } // namespace file_system_provider
53 } // namespace chromeos 58 } // namespace chromeos
54 59
55 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 60 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698