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

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

Issue 239993002: [fsp] Create a RequestManager per a ProvidedFileSystem instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed and rebased. Created 6 years, 8 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> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
(...skipping 13 matching lines...) Expand all
24 class FakeProvidedFileSystem : public ProvidedFileSystemInterface { 24 class FakeProvidedFileSystem : public ProvidedFileSystemInterface {
25 public: 25 public:
26 explicit FakeProvidedFileSystem( 26 explicit FakeProvidedFileSystem(
27 const ProvidedFileSystemInfo& file_system_info); 27 const ProvidedFileSystemInfo& file_system_info);
28 virtual ~FakeProvidedFileSystem(); 28 virtual ~FakeProvidedFileSystem();
29 29
30 // ProvidedFileSystemInterface overrides. 30 // ProvidedFileSystemInterface overrides.
31 virtual bool RequestUnmount( 31 virtual bool RequestUnmount(
32 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 32 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
33 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 33 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
34 virtual RequestManager* GetRequestManager() OVERRIDE;
34 35
35 // Factory callback, to be used in Service::SetFileSystemFactory(). Both 36 // Factory callback, to be used in Service::SetFileSystemFactory(). The
36 // |event_router| and |request_manager| arguments can be NULL. 37 // |event_router| argument can be NULL.
37 static ProvidedFileSystemInterface* Create( 38 static ProvidedFileSystemInterface* Create(
38 extensions::EventRouter* event_router, 39 extensions::EventRouter* event_router,
39 RequestManager* request_manager,
40 const ProvidedFileSystemInfo& file_system_info); 40 const ProvidedFileSystemInfo& file_system_info);
41 41
42 private: 42 private:
43 ProvidedFileSystemInfo file_system_info_; 43 ProvidedFileSystemInfo file_system_info_;
44 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 44 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
45 }; 45 };
46 46
47 } // namespace file_system_provider 47 } // namespace file_system_provider
48 } // namespace chromeos 48 } // namespace chromeos
49 49
50 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 50 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698