Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / chromeos / file_system_provider / provided_file_system.h
blob551d2c0db7a407602e258fb07bdb490683ee0b87
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_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_interface.h"
10 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
11 #include "webkit/browser/fileapi/async_file_util.h"
13 namespace base {
14 class FilePath;
15 } // namespace base
17 namespace extensions {
18 class EventRouter;
19 } // namespace extensions
21 namespace chromeos {
22 namespace file_system_provider {
24 // Provided file system implementation. Forwards requests between providers and
25 // clients.
26 class ProvidedFileSystem : public ProvidedFileSystemInterface {
27 public:
28 ProvidedFileSystem(extensions::EventRouter* event_router,
29 const ProvidedFileSystemInfo& file_system_info);
30 virtual ~ProvidedFileSystem();
32 // ProvidedFileSystemInterface overrides.
33 virtual void RequestUnmount(
34 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
35 virtual void GetMetadata(
36 const base::FilePath& entry_path,
37 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE;
38 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
39 virtual RequestManager* GetRequestManager() OVERRIDE;
41 private:
42 extensions::EventRouter* event_router_;
43 RequestManager request_manager_;
44 ProvidedFileSystemInfo file_system_info_;
46 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
49 } // namespace file_system_provider
50 } // namespace chromeos
52 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_