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

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

Issue 10068037: RefCounted types should not have public destructors, content/browser part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MSVC fixes Created 8 years, 7 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.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 FileStream if successful. 39 // Return a FileStream if successful.
40 // |net_log| is a NetLog for the stream. 40 // |net_log| is a NetLog for the stream.
41 net::FileStream* CreateFileStreamForDrop( 41 net::FileStream* CreateFileStreamForDrop(
42 FilePath* file_path, net::NetLog* net_log); 42 FilePath* file_path, net::NetLog* net_log);
43 43
44 // Implementation of DownloadFileObserver to finalize the download process. 44 // Implementation of DownloadFileObserver to finalize the download process.
45 class PromiseFileFinalizer : public ui::DownloadFileObserver { 45 class PromiseFileFinalizer : public ui::DownloadFileObserver {
46 public: 46 public:
47 explicit PromiseFileFinalizer(DragDownloadFile* drag_file_downloader); 47 explicit PromiseFileFinalizer(DragDownloadFile* drag_file_downloader);
48 virtual ~PromiseFileFinalizer();
49 48
50 // DownloadFileObserver methods. 49 // DownloadFileObserver methods.
51 virtual void OnDownloadCompleted(const FilePath& file_path) OVERRIDE; 50 virtual void OnDownloadCompleted(const FilePath& file_path) OVERRIDE;
52 virtual void OnDownloadAborted() OVERRIDE; 51 virtual void OnDownloadAborted() OVERRIDE;
53 52
53 protected:
54 virtual ~PromiseFileFinalizer();
55
54 private: 56 private:
55 void Cleanup(); 57 void Cleanup();
56 58
57 scoped_refptr<DragDownloadFile> drag_file_downloader_; 59 scoped_refptr<DragDownloadFile> drag_file_downloader_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(PromiseFileFinalizer); 61 DISALLOW_COPY_AND_ASSIGN(PromiseFileFinalizer);
60 }; 62 };
61 63
62 } // namespace drag_download_util 64 } // namespace drag_download_util
63 65
64 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_ 66 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_net_log_parameters.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698