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

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_file_util.h

Issue 660343006: Standardize usage of virtual/override/final in chrome/browser/media_galleries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" 10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h"
11 11
12 class ImportedMediaGalleryRegistry; 12 class ImportedMediaGalleryRegistry;
13 13
14 namespace itunes { 14 namespace itunes {
15 15
16 class ITunesDataProvider; 16 class ITunesDataProvider;
17 17
18 extern const char kITunesLibraryXML[]; 18 extern const char kITunesLibraryXML[];
19 extern const char kITunesMediaDir[]; 19 extern const char kITunesMediaDir[];
20 extern const char kITunesMusicDir[]; 20 extern const char kITunesMusicDir[];
21 extern const char kITunesAutoAddDir[]; 21 extern const char kITunesAutoAddDir[];
22 22
23 class ITunesFileUtil : public NativeMediaFileUtil { 23 class ITunesFileUtil : public NativeMediaFileUtil {
24 public: 24 public:
25 explicit ITunesFileUtil(MediaPathFilter* media_path_filter); 25 explicit ITunesFileUtil(MediaPathFilter* media_path_filter);
26 virtual ~ITunesFileUtil(); 26 ~ITunesFileUtil() override;
27 27
28 protected: 28 protected:
29 // NativeMediaFileUtil overrides. 29 // NativeMediaFileUtil overrides.
30 virtual void GetFileInfoOnTaskRunnerThread( 30 void GetFileInfoOnTaskRunnerThread(
31 scoped_ptr<storage::FileSystemOperationContext> context, 31 scoped_ptr<storage::FileSystemOperationContext> context,
32 const storage::FileSystemURL& url, 32 const storage::FileSystemURL& url,
33 const GetFileInfoCallback& callback) override; 33 const GetFileInfoCallback& callback) override;
34 virtual void ReadDirectoryOnTaskRunnerThread( 34 void ReadDirectoryOnTaskRunnerThread(
35 scoped_ptr<storage::FileSystemOperationContext> context, 35 scoped_ptr<storage::FileSystemOperationContext> context,
36 const storage::FileSystemURL& url, 36 const storage::FileSystemURL& url,
37 const ReadDirectoryCallback& callback) override; 37 const ReadDirectoryCallback& callback) override;
38 virtual void CreateSnapshotFileOnTaskRunnerThread( 38 void CreateSnapshotFileOnTaskRunnerThread(
39 scoped_ptr<storage::FileSystemOperationContext> context, 39 scoped_ptr<storage::FileSystemOperationContext> context,
40 const storage::FileSystemURL& url, 40 const storage::FileSystemURL& url,
41 const CreateSnapshotFileCallback& callback) override; 41 const CreateSnapshotFileCallback& callback) override;
42 virtual base::File::Error GetFileInfoSync( 42 base::File::Error GetFileInfoSync(
43 storage::FileSystemOperationContext* context, 43 storage::FileSystemOperationContext* context,
44 const storage::FileSystemURL& url, 44 const storage::FileSystemURL& url,
45 base::File::Info* file_info, 45 base::File::Info* file_info,
46 base::FilePath* platform_path) override; 46 base::FilePath* platform_path) override;
47 virtual base::File::Error ReadDirectorySync( 47 base::File::Error ReadDirectorySync(
48 storage::FileSystemOperationContext* context, 48 storage::FileSystemOperationContext* context,
49 const storage::FileSystemURL& url, 49 const storage::FileSystemURL& url,
50 EntryList* file_list) override; 50 EntryList* file_list) override;
51 virtual base::File::Error DeleteDirectorySync( 51 base::File::Error DeleteDirectorySync(
52 storage::FileSystemOperationContext* context, 52 storage::FileSystemOperationContext* context,
53 const storage::FileSystemURL& url) override; 53 const storage::FileSystemURL& url) override;
54 virtual base::File::Error DeleteFileSync( 54 base::File::Error DeleteFileSync(storage::FileSystemOperationContext* context,
55 storage::FileSystemOperationContext* context, 55 const storage::FileSystemURL& url) override;
56 const storage::FileSystemURL& url) override; 56 base::File::Error CreateSnapshotFileSync(
57 virtual base::File::Error CreateSnapshotFileSync(
58 storage::FileSystemOperationContext* context, 57 storage::FileSystemOperationContext* context,
59 const storage::FileSystemURL& url, 58 const storage::FileSystemURL& url,
60 base::File::Info* file_info, 59 base::File::Info* file_info,
61 base::FilePath* platform_path, 60 base::FilePath* platform_path,
62 scoped_refptr<storage::ShareableFileReference>* file_ref) override; 61 scoped_refptr<storage::ShareableFileReference>* file_ref) override;
63 virtual base::File::Error GetLocalFilePath( 62 base::File::Error GetLocalFilePath(
64 storage::FileSystemOperationContext* context, 63 storage::FileSystemOperationContext* context,
65 const storage::FileSystemURL& url, 64 const storage::FileSystemURL& url,
66 base::FilePath* local_file_path) override; 65 base::FilePath* local_file_path) override;
67 66
68 private: 67 private:
69 void GetFileInfoWithFreshDataProvider( 68 void GetFileInfoWithFreshDataProvider(
70 scoped_ptr<storage::FileSystemOperationContext> context, 69 scoped_ptr<storage::FileSystemOperationContext> context,
71 const storage::FileSystemURL& url, 70 const storage::FileSystemURL& url,
72 const GetFileInfoCallback& callback, 71 const GetFileInfoCallback& callback,
73 bool valid_parse); 72 bool valid_parse);
(...skipping 13 matching lines...) Expand all
87 ImportedMediaGalleryRegistry* imported_registry_; 86 ImportedMediaGalleryRegistry* imported_registry_;
88 87
89 base::WeakPtrFactory<ITunesFileUtil> weak_factory_; 88 base::WeakPtrFactory<ITunesFileUtil> weak_factory_;
90 89
91 DISALLOW_COPY_AND_ASSIGN(ITunesFileUtil); 90 DISALLOW_COPY_AND_ASSIGN(ITunesFileUtil);
92 }; 91 };
93 92
94 } // namespace itunes 93 } // namespace itunes
95 94
96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ 95 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698