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

Side by Side Diff: components/drive/dummy_file_system.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ 5 #ifndef COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_
6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ 6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_
7 7
8 #include "components/drive/file_system_interface.h" 8 #include "components/drive/file_system_interface.h"
9 9
10 namespace drive { 10 namespace drive {
11 11
12 // Dummy implementation of FileSystemInterface. All functions do nothing. 12 // Dummy implementation of FileSystemInterface. All functions do nothing.
13 class DummyFileSystem : public FileSystemInterface { 13 class DummyFileSystem : public FileSystemInterface {
14 public: 14 public:
15 DummyFileSystem();
15 ~DummyFileSystem() override {} 16 ~DummyFileSystem() override {}
16 void AddObserver(FileSystemObserver* observer) override {} 17 void AddObserver(FileSystemObserver* observer) override {}
17 void RemoveObserver(FileSystemObserver* observer) override {} 18 void RemoveObserver(FileSystemObserver* observer) override {}
18 void CheckForUpdates() override {} 19 void CheckForUpdates() override {}
19 void TransferFileFromLocalToRemote( 20 void TransferFileFromLocalToRemote(
20 const base::FilePath& local_src_file_path, 21 const base::FilePath& local_src_file_path,
21 const base::FilePath& remote_dest_file_path, 22 const base::FilePath& remote_dest_file_path,
22 const FileOperationCallback& callback) override {} 23 const FileOperationCallback& callback) override {}
23 void OpenFile(const base::FilePath& file_path, 24 void OpenFile(const base::FilePath& file_path,
24 OpenMode open_mode, 25 OpenMode open_mode,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void FreeDiskSpaceIfNeededFor( 103 void FreeDiskSpaceIfNeededFor(
103 int64 num_bytes, 104 int64 num_bytes,
104 const FreeDiskSpaceCallback& callback) override {} 105 const FreeDiskSpaceCallback& callback) override {}
105 void CalculateEvictableCacheSize( 106 void CalculateEvictableCacheSize(
106 const EvictableCacheSizeCallback& callback) override {} 107 const EvictableCacheSizeCallback& callback) override {}
107 }; 108 };
108 109
109 } // namespace drive 110 } // namespace drive
110 111
111 #endif // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ 112 #endif // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698