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

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: Added DLOG, DCHECK. 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 callback) OVERRIDE; 56 callback) OVERRIDE;
57 virtual void CreateWritableSnapshotFile( 57 virtual void CreateWritableSnapshotFile(
58 const GURL& path, 58 const GURL& path,
59 const fileapi::WritableSnapshotFile& callback) OVERRIDE; 59 const fileapi::WritableSnapshotFile& callback) OVERRIDE;
60 virtual void OpenFile( 60 virtual void OpenFile(
61 const GURL& path, 61 const GURL& path,
62 int file_flags, 62 int file_flags,
63 base::ProcessHandle peer_handle, 63 base::ProcessHandle peer_handle,
64 const fileapi::FileSystemOperationInterface::OpenFileCallback& 64 const fileapi::FileSystemOperationInterface::OpenFileCallback&
65 callback) OVERRIDE; 65 callback) OVERRIDE;
66 virtual void NotifyCloseFile(const GURL& path) OVERRIDE;
66 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. 67 // TODO(zelidrag): More methods to follow as we implement other parts of FSO.
67 68
68 private: 69 private:
69 // Checks if a given |url| belongs to this file system. If it does, 70 // Checks if a given |url| belongs to this file system. If it does,
70 // the call will return true and fill in |file_path| with a file path of 71 // the call will return true and fill in |file_path| with a file path of
71 // a corresponding element within this file system. 72 // a corresponding element within this file system.
72 static bool ValidateUrl(const GURL& url, FilePath* file_path); 73 static bool ValidateUrl(const GURL& url, FilePath* file_path);
73 74
74 // Helper callback for relaying reply for metadata retrieval request to the 75 // Helper callback for relaying reply for metadata retrieval request to the
75 // calling thread. 76 // calling thread.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // GDataFileSystemProxy is owned by Profile, which outlives 134 // GDataFileSystemProxy is owned by Profile, which outlives
134 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by 135 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by
135 // the time Profile is removed, the file manager is already gone). Hence 136 // the time Profile is removed, the file manager is already gone). Hence
136 // it's safe to use this as a raw pointer. 137 // it's safe to use this as a raw pointer.
137 GDataFileSystemInterface* file_system_; 138 GDataFileSystemInterface* file_system_;
138 }; 139 };
139 140
140 } // namespace chromeos 141 } // namespace chromeos
141 142
142 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 143 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698