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

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

Issue 258783006: [fsp] Add the getMetadata operation. (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 <string>
9
10 #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"
11 #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"
12 10
13 namespace extensions { 11 namespace extensions {
14 class EventRouter; 12 class EventRouter;
15 } // namespace extensions 13 } // namespace extensions
16 14
17 namespace chromeos { 15 namespace chromeos {
18 namespace file_system_provider { 16 namespace file_system_provider {
19 17
20 class RequestManager; 18 class RequestManager;
21 19
22 // Fake provided file system implementation. Does not communicate with target 20 // Fake provided file system implementation. Does not communicate with target
23 // extensions. Used for unit tests. 21 // extensions. Used for unit tests.
24 class FakeProvidedFileSystem : public ProvidedFileSystemInterface { 22 class FakeProvidedFileSystem : public ProvidedFileSystemInterface {
25 public: 23 public:
26 explicit FakeProvidedFileSystem( 24 explicit FakeProvidedFileSystem(
27 const ProvidedFileSystemInfo& file_system_info); 25 const ProvidedFileSystemInfo& file_system_info);
28 virtual ~FakeProvidedFileSystem(); 26 virtual ~FakeProvidedFileSystem();
29 27
30 // ProvidedFileSystemInterface overrides. 28 // ProvidedFileSystemInterface overrides.
31 virtual void RequestUnmount( 29 virtual void RequestUnmount(
32 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 30 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
31 virtual void GetMetadata(
32 const base::FilePath& entry_path,
33 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE;
33 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 34 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
34 virtual RequestManager* GetRequestManager() OVERRIDE; 35 virtual RequestManager* GetRequestManager() OVERRIDE;
35 36
36 // Factory callback, to be used in Service::SetFileSystemFactory(). The 37 // Factory callback, to be used in Service::SetFileSystemFactory(). The
37 // |event_router| argument can be NULL. 38 // |event_router| argument can be NULL.
38 static ProvidedFileSystemInterface* Create( 39 static ProvidedFileSystemInterface* Create(
39 extensions::EventRouter* event_router, 40 extensions::EventRouter* event_router,
40 const ProvidedFileSystemInfo& file_system_info); 41 const ProvidedFileSystemInfo& file_system_info);
41 42
42 private: 43 private:
43 ProvidedFileSystemInfo file_system_info_; 44 ProvidedFileSystemInfo file_system_info_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 46 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
46 }; 47 };
47 48
48 } // namespace file_system_provider 49 } // namespace file_system_provider
49 } // namespace chromeos 50 } // namespace chromeos
50 51
51 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698