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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.h

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 5 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 (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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 callback) OVERRIDE; 66 callback) OVERRIDE;
67 virtual void CreateWritableSnapshotFile( 67 virtual void CreateWritableSnapshotFile(
68 const fileapi::FileSystemURL& url, 68 const fileapi::FileSystemURL& url,
69 const fileapi::WritableSnapshotFile& callback) OVERRIDE; 69 const fileapi::WritableSnapshotFile& callback) OVERRIDE;
70 virtual void OpenFile( 70 virtual void OpenFile(
71 const fileapi::FileSystemURL& url, 71 const fileapi::FileSystemURL& url,
72 int file_flags, 72 int file_flags,
73 base::ProcessHandle peer_handle, 73 base::ProcessHandle peer_handle,
74 const fileapi::FileSystemOperationInterface::OpenFileCallback& 74 const fileapi::FileSystemOperationInterface::OpenFileCallback&
75 callback) OVERRIDE; 75 callback) OVERRIDE;
76 virtual void NotifyCloseFile(const fileapi::FileSystemURL& url) OVERRIDE;
76 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. 77 // TODO(zelidrag): More methods to follow as we implement other parts of FSO.
77 78
78 protected: 79 protected:
79 virtual ~GDataFileSystemProxy(); 80 virtual ~GDataFileSystemProxy();
80 81
81 private: 82 private:
82 // Checks if a given |url| belongs to this file system. If it does, 83 // Checks if a given |url| belongs to this file system. If it does,
83 // the call will return true and fill in |file_path| with a file path of 84 // the call will return true and fill in |file_path| with a file path of
84 // a corresponding element within this file system. 85 // a corresponding element within this file system.
85 static bool ValidateUrl(const fileapi::FileSystemURL& url, 86 static bool ValidateUrl(const fileapi::FileSystemURL& url,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // GDataFileSystemProxy is owned by Profile, which outlives 148 // GDataFileSystemProxy is owned by Profile, which outlives
148 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by 149 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by
149 // the time Profile is removed, the file manager is already gone). Hence 150 // the time Profile is removed, the file manager is already gone). Hence
150 // it's safe to use this as a raw pointer. 151 // it's safe to use this as a raw pointer.
151 GDataFileSystemInterface* file_system_; 152 GDataFileSystemInterface* file_system_;
152 }; 153 };
153 154
154 } // namespace chromeos 155 } // namespace chromeos
155 156
156 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 157 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698