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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_preferences.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 (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_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Return true if the storage monitor has already been initialized. 194 // Return true if the storage monitor has already been initialized.
195 bool IsInitialized() const; 195 bool IsInitialized() const;
196 196
197 Profile* profile(); 197 Profile* profile();
198 198
199 void AddGalleryChangeObserver(GalleryChangeObserver* observer); 199 void AddGalleryChangeObserver(GalleryChangeObserver* observer);
200 void RemoveGalleryChangeObserver(GalleryChangeObserver* observer); 200 void RemoveGalleryChangeObserver(GalleryChangeObserver* observer);
201 201
202 // RemovableStorageObserver implementation. 202 // RemovableStorageObserver implementation.
203 virtual void OnRemovableStorageAttached( 203 virtual void OnRemovableStorageAttached(
204 const storage_monitor::StorageInfo& info) OVERRIDE; 204 const storage_monitor::StorageInfo& info) override;
205 205
206 // Lookup a media gallery and fill in information about it and return true if 206 // Lookup a media gallery and fill in information about it and return true if
207 // it exists. Return false if it does not, filling in default information. 207 // it exists. Return false if it does not, filling in default information.
208 bool LookUpGalleryByPath(const base::FilePath& path, 208 bool LookUpGalleryByPath(const base::FilePath& path,
209 MediaGalleryPrefInfo* gallery) const; 209 MediaGalleryPrefInfo* gallery) const;
210 210
211 MediaGalleryPrefIdSet LookUpGalleriesByDeviceId( 211 MediaGalleryPrefIdSet LookUpGalleriesByDeviceId(
212 const std::string& device_id) const; 212 const std::string& device_id) const;
213 213
214 // Returns the absolute file path of the gallery specified by the 214 // Returns the absolute file path of the gallery specified by the
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool has_permission); 270 bool has_permission);
271 271
272 const MediaGalleriesPrefInfoMap& known_galleries() const; 272 const MediaGalleriesPrefInfoMap& known_galleries() const;
273 273
274 // These keep track of when we last successfully completed a media scan. 274 // These keep track of when we last successfully completed a media scan.
275 // This is used to provide cached results when appropriate. 275 // This is used to provide cached results when appropriate.
276 base::Time GetLastScanCompletionTime() const; 276 base::Time GetLastScanCompletionTime() const;
277 void SetLastScanCompletionTime(const base::Time& time); 277 void SetLastScanCompletionTime(const base::Time& time);
278 278
279 // KeyedService implementation: 279 // KeyedService implementation:
280 virtual void Shutdown() OVERRIDE; 280 virtual void Shutdown() override;
281 281
282 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 282 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
283 283
284 // Returns true if the media gallery preferences system has ever been used 284 // Returns true if the media gallery preferences system has ever been used
285 // for this profile. To be exact, it checks if a gallery has ever been added 285 // for this profile. To be exact, it checks if a gallery has ever been added
286 // (including defaults). 286 // (including defaults).
287 static bool APIHasBeenUsed(Profile* profile); 287 static bool APIHasBeenUsed(Profile* profile);
288 288
289 private: 289 private:
290 friend class MediaGalleriesPreferencesTest; 290 friend class MediaGalleriesPreferencesTest;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 DeviceIdPrefIdsMap device_map_; 395 DeviceIdPrefIdsMap device_map_;
396 396
397 ObserverList<GalleryChangeObserver> gallery_change_observers_; 397 ObserverList<GalleryChangeObserver> gallery_change_observers_;
398 398
399 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; 399 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_;
400 400
401 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); 401 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences);
402 }; 402 };
403 403
404 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 404 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698