| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" | 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 callback) OVERRIDE; | 71 callback) OVERRIDE; |
| 72 virtual void CreateWritableSnapshotFile( | 72 virtual void CreateWritableSnapshotFile( |
| 73 const fileapi::FileSystemURL& url, | 73 const fileapi::FileSystemURL& url, |
| 74 const fileapi::WritableSnapshotFile& callback) OVERRIDE; | 74 const fileapi::WritableSnapshotFile& callback) OVERRIDE; |
| 75 virtual void OpenFile( | 75 virtual void OpenFile( |
| 76 const fileapi::FileSystemURL& url, | 76 const fileapi::FileSystemURL& url, |
| 77 int file_flags, | 77 int file_flags, |
| 78 base::ProcessHandle peer_handle, | 78 base::ProcessHandle peer_handle, |
| 79 const fileapi::FileSystemOperationInterface::OpenFileCallback& | 79 const fileapi::FileSystemOperationInterface::OpenFileCallback& |
| 80 callback) OVERRIDE; | 80 callback) OVERRIDE; |
| 81 virtual void NotifyCloseFile(const fileapi::FileSystemURL& url) OVERRIDE; |
| 81 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. | 82 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. |
| 82 | 83 |
| 83 protected: | 84 protected: |
| 84 virtual ~GDataFileSystemProxy(); | 85 virtual ~GDataFileSystemProxy(); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 // Checks if a given |url| belongs to this file system. If it does, | 88 // Checks if a given |url| belongs to this file system. If it does, |
| 88 // the call will return true and fill in |file_path| with a file path of | 89 // the call will return true and fill in |file_path| with a file path of |
| 89 // a corresponding element within this file system. | 90 // a corresponding element within this file system. |
| 90 static bool ValidateUrl(const fileapi::FileSystemURL& url, | 91 static bool ValidateUrl(const fileapi::FileSystemURL& url, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // GDataFileSystemProxy is owned by Profile, which outlives | 153 // GDataFileSystemProxy is owned by Profile, which outlives |
| 153 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by | 154 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by |
| 154 // the time Profile is removed, the file manager is already gone). Hence | 155 // the time Profile is removed, the file manager is already gone). Hence |
| 155 // it's safe to use this as a raw pointer. | 156 // it's safe to use this as a raw pointer. |
| 156 GDataFileSystemInterface* file_system_; | 157 GDataFileSystemInterface* file_system_; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace chromeos | 160 } // namespace chromeos |
| 160 | 161 |
| 161 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ | 162 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |