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

Side by Side Diff: chrome/browser/download/download_path_reservation_tracker.cc

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 #include "chrome/browser/download/download_path_reservation_tracker.h" 5 #include "chrome/browser/download/download_path_reservation_tracker.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // revokes associated download path reservations as necessary. Created, invoked 50 // revokes associated download path reservations as necessary. Created, invoked
51 // and destroyed on the UI thread. 51 // and destroyed on the UI thread.
52 class DownloadItemObserver : public DownloadItem::Observer { 52 class DownloadItemObserver : public DownloadItem::Observer {
53 public: 53 public:
54 explicit DownloadItemObserver(DownloadItem* download_item); 54 explicit DownloadItemObserver(DownloadItem* download_item);
55 55
56 private: 56 private:
57 virtual ~DownloadItemObserver(); 57 virtual ~DownloadItemObserver();
58 58
59 // DownloadItem::Observer 59 // DownloadItem::Observer
60 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; 60 virtual void OnDownloadUpdated(DownloadItem* download) override;
61 virtual void OnDownloadDestroyed(DownloadItem* download) OVERRIDE; 61 virtual void OnDownloadDestroyed(DownloadItem* download) override;
62 62
63 DownloadItem* download_item_; 63 DownloadItem* download_item_;
64 64
65 // Last known target path for the download. 65 // Last known target path for the download.
66 base::FilePath last_target_path_; 66 base::FilePath last_target_path_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(DownloadItemObserver); 68 DISALLOW_COPY_AND_ASSIGN(DownloadItemObserver);
69 }; 69 };
70 70
71 // Returns true if the given path is in use by a path reservation. 71 // Returns true if the given path is in use by a path reservation.
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 base::Bind(&RunGetReservedPathCallback, 370 base::Bind(&RunGetReservedPathCallback,
371 callback, 371 callback,
372 base::Owned(reserved_path))); 372 base::Owned(reserved_path)));
373 } 373 }
374 374
375 // static 375 // static
376 bool DownloadPathReservationTracker::IsPathInUseForTesting( 376 bool DownloadPathReservationTracker::IsPathInUseForTesting(
377 const base::FilePath& path) { 377 const base::FilePath& path) {
378 return IsPathInUse(path); 378 return IsPathInUse(path);
379 } 379 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698