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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_interface.h

Issue 23625013: Remove drive::FileSystemInterface::Initialize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 3 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_DRIVE_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 SEARCH_METADATA_SHARED_WITH_ME = 1 << 2, 159 SEARCH_METADATA_SHARED_WITH_ME = 1 << 2,
160 SEARCH_METADATA_OFFLINE = 1 << 3, 160 SEARCH_METADATA_OFFLINE = 1 << 3,
161 }; 161 };
162 162
163 // Drive file system abstraction layer. 163 // Drive file system abstraction layer.
164 // The interface is defined to make FileSystem mockable. 164 // The interface is defined to make FileSystem mockable.
165 class FileSystemInterface { 165 class FileSystemInterface {
166 public: 166 public:
167 virtual ~FileSystemInterface() {} 167 virtual ~FileSystemInterface() {}
168 168
169 // Initializes the object. This function should be called before any
170 // other functions.
171 virtual void Initialize() = 0;
172
173 // Adds and removes the observer. 169 // Adds and removes the observer.
174 virtual void AddObserver(FileSystemObserver* observer) = 0; 170 virtual void AddObserver(FileSystemObserver* observer) = 0;
175 virtual void RemoveObserver(FileSystemObserver* observer) = 0; 171 virtual void RemoveObserver(FileSystemObserver* observer) = 0;
176 172
177 // Checks for updates on the server. 173 // Checks for updates on the server.
178 virtual void CheckForUpdates() = 0; 174 virtual void CheckForUpdates() = 0;
179 175
180 // Initiates transfer of |local_src_file_path| to |remote_dest_file_path|. 176 // Initiates transfer of |local_src_file_path| to |remote_dest_file_path|.
181 // |local_src_file_path| must be a file from the local file system. 177 // |local_src_file_path| must be a file from the local file system.
182 // |remote_dest_file_path| is the virtual destination path within Drive file 178 // |remote_dest_file_path| is the virtual destination path within Drive file
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 virtual void GetCacheEntryByPath(const base::FilePath& drive_file_path, 417 virtual void GetCacheEntryByPath(const base::FilePath& drive_file_path,
422 const GetCacheEntryCallback& callback) = 0; 418 const GetCacheEntryCallback& callback) = 0;
423 419
424 // Reloads the resource metadata from the server. 420 // Reloads the resource metadata from the server.
425 virtual void Reload(const FileOperationCallback& callback) = 0; 421 virtual void Reload(const FileOperationCallback& callback) = 0;
426 }; 422 };
427 423
428 } // namespace drive 424 } // namespace drive
429 425
430 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 426 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/drive/file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698