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

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

Issue 13866050: drive: Introduce DriveSystemServiceObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FAKE_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 class FakeDriveFileSystem : public DriveFileSystemInterface { 38 class FakeDriveFileSystem : public DriveFileSystemInterface {
39 public: 39 public:
40 explicit FakeDriveFileSystem( 40 explicit FakeDriveFileSystem(
41 google_apis::DriveServiceInterface* drive_service); 41 google_apis::DriveServiceInterface* drive_service);
42 virtual ~FakeDriveFileSystem(); 42 virtual ~FakeDriveFileSystem();
43 43
44 // DriveFileSystemInterface Overrides. 44 // DriveFileSystemInterface Overrides.
45 virtual void Initialize() OVERRIDE; 45 virtual void Initialize() OVERRIDE;
46 virtual void AddObserver(DriveFileSystemObserver* observer) OVERRIDE; 46 virtual void AddObserver(DriveFileSystemObserver* observer) OVERRIDE;
47 virtual void RemoveObserver(DriveFileSystemObserver* observer) OVERRIDE; 47 virtual void RemoveObserver(DriveFileSystemObserver* observer) OVERRIDE;
48 virtual void NotifyFileSystemMounted() OVERRIDE;
49 virtual void NotifyFileSystemToBeUnmounted() OVERRIDE;
50 virtual void CheckForUpdates() OVERRIDE; 48 virtual void CheckForUpdates() OVERRIDE;
51 virtual void GetEntryInfoByResourceId( 49 virtual void GetEntryInfoByResourceId(
52 const std::string& resource_id, 50 const std::string& resource_id,
53 const GetEntryInfoWithFilePathCallback& callback) OVERRIDE; 51 const GetEntryInfoWithFilePathCallback& callback) OVERRIDE;
54 virtual void TransferFileFromRemoteToLocal( 52 virtual void TransferFileFromRemoteToLocal(
55 const base::FilePath& remote_src_file_path, 53 const base::FilePath& remote_src_file_path,
56 const base::FilePath& local_dest_file_path, 54 const base::FilePath& local_dest_file_path,
57 const FileOperationCallback& callback) OVERRIDE; 55 const FileOperationCallback& callback) OVERRIDE;
58 virtual void TransferFileFromLocalToRemote( 56 virtual void TransferFileFromLocalToRemote(
59 const base::FilePath& local_src_file_path, 57 const base::FilePath& local_src_file_path,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // invalidate the weak pointers before any other members are destroyed. 196 // invalidate the weak pointers before any other members are destroyed.
199 base::WeakPtrFactory<FakeDriveFileSystem> weak_ptr_factory_; 197 base::WeakPtrFactory<FakeDriveFileSystem> weak_ptr_factory_;
200 198
201 DISALLOW_COPY_AND_ASSIGN(FakeDriveFileSystem); 199 DISALLOW_COPY_AND_ASSIGN(FakeDriveFileSystem);
202 }; 200 };
203 201
204 } // namespace test_util 202 } // namespace test_util
205 } // namespace drive 203 } // namespace drive
206 204
207 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ 205 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_system_service.cc ('k') | chrome/browser/chromeos/drive/fake_drive_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698