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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 std::string mime_type, 65 std::string mime_type,
66 std::string contents); 66 std::string contents);
67 67
68 // Fetches a pointer to a fake entry registered in the fake file system. If 68 // Fetches a pointer to a fake entry registered in the fake file system. If
69 // not found, then returns NULL. The returned pointes is owned by 69 // not found, then returns NULL. The returned pointes is owned by
70 // FakeProvidedFileSystem. 70 // FakeProvidedFileSystem.
71 const FakeEntry* GetEntry(const base::FilePath& entry_path) const; 71 const FakeEntry* GetEntry(const base::FilePath& entry_path) const;
72 72
73 // ProvidedFileSystemInterface overrides. 73 // ProvidedFileSystemInterface overrides.
74 virtual AbortCallback RequestUnmount( 74 virtual AbortCallback RequestUnmount(
75 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 75 const storage::AsyncFileUtil::StatusCallback& callback) override;
76 virtual AbortCallback GetMetadata( 76 virtual AbortCallback GetMetadata(
77 const base::FilePath& entry_path, 77 const base::FilePath& entry_path,
78 ProvidedFileSystemInterface::MetadataFieldMask fields, 78 ProvidedFileSystemInterface::MetadataFieldMask fields,
79 const ProvidedFileSystemInterface::GetMetadataCallback& callback) 79 const ProvidedFileSystemInterface::GetMetadataCallback& callback)
80 OVERRIDE; 80 override;
81 virtual AbortCallback ReadDirectory( 81 virtual AbortCallback ReadDirectory(
82 const base::FilePath& directory_path, 82 const base::FilePath& directory_path,
83 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; 83 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override;
84 virtual AbortCallback OpenFile(const base::FilePath& file_path, 84 virtual AbortCallback OpenFile(const base::FilePath& file_path,
85 OpenFileMode mode, 85 OpenFileMode mode,
86 const OpenFileCallback& callback) OVERRIDE; 86 const OpenFileCallback& callback) override;
87 virtual AbortCallback CloseFile( 87 virtual AbortCallback CloseFile(
88 int file_handle, 88 int file_handle,
89 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 89 const storage::AsyncFileUtil::StatusCallback& callback) override;
90 virtual AbortCallback ReadFile( 90 virtual AbortCallback ReadFile(
91 int file_handle, 91 int file_handle,
92 net::IOBuffer* buffer, 92 net::IOBuffer* buffer,
93 int64 offset, 93 int64 offset,
94 int length, 94 int length,
95 const ReadChunkReceivedCallback& callback) OVERRIDE; 95 const ReadChunkReceivedCallback& callback) override;
96 virtual AbortCallback CreateDirectory( 96 virtual AbortCallback CreateDirectory(
97 const base::FilePath& directory_path, 97 const base::FilePath& directory_path,
98 bool recursive, 98 bool recursive,
99 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 99 const storage::AsyncFileUtil::StatusCallback& callback) override;
100 virtual AbortCallback DeleteEntry( 100 virtual AbortCallback DeleteEntry(
101 const base::FilePath& entry_path, 101 const base::FilePath& entry_path,
102 bool recursive, 102 bool recursive,
103 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 103 const storage::AsyncFileUtil::StatusCallback& callback) override;
104 virtual AbortCallback CreateFile( 104 virtual AbortCallback CreateFile(
105 const base::FilePath& file_path, 105 const base::FilePath& file_path,
106 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 106 const storage::AsyncFileUtil::StatusCallback& callback) override;
107 virtual AbortCallback CopyEntry( 107 virtual AbortCallback CopyEntry(
108 const base::FilePath& source_path, 108 const base::FilePath& source_path,
109 const base::FilePath& target_path, 109 const base::FilePath& target_path,
110 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 110 const storage::AsyncFileUtil::StatusCallback& callback) override;
111 virtual AbortCallback MoveEntry( 111 virtual AbortCallback MoveEntry(
112 const base::FilePath& source_path, 112 const base::FilePath& source_path,
113 const base::FilePath& target_path, 113 const base::FilePath& target_path,
114 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 114 const storage::AsyncFileUtil::StatusCallback& callback) override;
115 virtual AbortCallback Truncate( 115 virtual AbortCallback Truncate(
116 const base::FilePath& file_path, 116 const base::FilePath& file_path,
117 int64 length, 117 int64 length,
118 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 118 const storage::AsyncFileUtil::StatusCallback& callback) override;
119 virtual AbortCallback WriteFile( 119 virtual AbortCallback WriteFile(
120 int file_handle, 120 int file_handle,
121 net::IOBuffer* buffer, 121 net::IOBuffer* buffer,
122 int64 offset, 122 int64 offset,
123 int length, 123 int length,
124 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 124 const storage::AsyncFileUtil::StatusCallback& callback) override;
125 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 125 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override;
126 virtual RequestManager* GetRequestManager() OVERRIDE; 126 virtual RequestManager* GetRequestManager() override;
127 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; 127 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
128 128
129 // Factory callback, to be used in Service::SetFileSystemFactory(). The 129 // Factory callback, to be used in Service::SetFileSystemFactory(). The
130 // |event_router| argument can be NULL. 130 // |event_router| argument can be NULL.
131 static ProvidedFileSystemInterface* Create( 131 static ProvidedFileSystemInterface* Create(
132 Profile* profile, 132 Profile* profile,
133 const ProvidedFileSystemInfo& file_system_info); 133 const ProvidedFileSystemInfo& file_system_info);
134 134
135 private: 135 private:
136 typedef std::map<base::FilePath, linked_ptr<FakeEntry> > Entries; 136 typedef std::map<base::FilePath, linked_ptr<FakeEntry> > Entries;
137 typedef std::map<int, base::FilePath> OpenedFilesMap; 137 typedef std::map<int, base::FilePath> OpenedFilesMap;
(...skipping 20 matching lines...) Expand all
158 base::CancelableTaskTracker tracker_; 158 base::CancelableTaskTracker tracker_;
159 159
160 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; 160 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_;
161 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 161 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
162 }; 162 };
163 163
164 } // namespace file_system_provider 164 } // namespace file_system_provider
165 } // namespace chromeos 165 } // namespace chromeos
166 166
167 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 167 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698