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

Side by Side Diff: content/browser/download/drag_download_util.h

Issue 638503002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[download|… (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 (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 CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 27 matching lines...) Expand all
38 // insert the sequential unifier to produce a new file, like foo-01.txt. 38 // insert the sequential unifier to produce a new file, like foo-01.txt.
39 // Return a File if successful. 39 // Return a File if successful.
40 CONTENT_EXPORT base::File CreateFileForDrop(base::FilePath* file_path); 40 CONTENT_EXPORT base::File CreateFileForDrop(base::FilePath* file_path);
41 41
42 // Implementation of DownloadFileObserver to finalize the download process. 42 // Implementation of DownloadFileObserver to finalize the download process.
43 class PromiseFileFinalizer : public ui::DownloadFileObserver { 43 class PromiseFileFinalizer : public ui::DownloadFileObserver {
44 public: 44 public:
45 explicit PromiseFileFinalizer(DragDownloadFile* drag_file_downloader); 45 explicit PromiseFileFinalizer(DragDownloadFile* drag_file_downloader);
46 46
47 // DownloadFileObserver methods. 47 // DownloadFileObserver methods.
48 virtual void OnDownloadCompleted(const base::FilePath& file_path) OVERRIDE; 48 virtual void OnDownloadCompleted(const base::FilePath& file_path) override;
49 virtual void OnDownloadAborted() OVERRIDE; 49 virtual void OnDownloadAborted() override;
50 50
51 protected: 51 protected:
52 virtual ~PromiseFileFinalizer(); 52 virtual ~PromiseFileFinalizer();
53 53
54 private: 54 private:
55 void Cleanup(); 55 void Cleanup();
56 56
57 scoped_refptr<DragDownloadFile> drag_file_downloader_; 57 scoped_refptr<DragDownloadFile> drag_file_downloader_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(PromiseFileFinalizer); 59 DISALLOW_COPY_AND_ASSIGN(PromiseFileFinalizer);
60 }; 60 };
61 61
62 } // namespace content 62 } // namespace content
63 63
64 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_ 64 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/download/drag_download_file_browsertest.cc ('k') | content/browser/download/file_metadata_unittest_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698