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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FILE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 29 matching lines...) Expand all
40 DragDownloadFile(const FilePath& file_name_or_path, 40 DragDownloadFile(const FilePath& file_name_or_path,
41 linked_ptr<net::FileStream> file_stream, 41 linked_ptr<net::FileStream> file_stream,
42 const GURL& url, 42 const GURL& url,
43 const GURL& referrer, 43 const GURL& referrer,
44 const std::string& referrer_encoding, 44 const std::string& referrer_encoding,
45 TabContents* tab_contents); 45 TabContents* tab_contents);
46 46
47 // DownloadFileProvider methods. 47 // DownloadFileProvider methods.
48 // Called on drag-and-drop thread (Windows). 48 // Called on drag-and-drop thread (Windows).
49 // Called on UI thread (MacOSX). 49 // Called on UI thread (MacOSX).
50 virtual bool Start(ui::DownloadFileObserver* observer); 50 virtual bool Start(ui::DownloadFileObserver* observer) OVERRIDE;
51 virtual void Stop(); 51 virtual void Stop() OVERRIDE;
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 virtual IStream* GetStream() { return NULL; } 53 virtual IStream* GetStream() { return NULL; }
54 #endif 54 #endif
55 55
56 // DownloadManager::Observer methods. 56 // DownloadManager::Observer methods.
57 // Called on UI thread. 57 // Called on UI thread.
58 virtual void ModelChanged(); 58 virtual void ModelChanged() OVERRIDE;
59 59
60 // DownloadItem::Observer methods. 60 // DownloadItem::Observer methods.
61 // Called on UI thread. 61 // Called on UI thread.
62 virtual void OnDownloadUpdated(DownloadItem* download); 62 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE;
63 virtual void OnDownloadOpened(DownloadItem* download) { } 63 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE { }
64 64
65 private: 65 private:
66 // Called on drag-and-drop thread (Windows). 66 // Called on drag-and-drop thread (Windows).
67 // Called on UI thread (Windows). 67 // Called on UI thread (Windows).
68 virtual ~DragDownloadFile(); 68 virtual ~DragDownloadFile();
69 69
70 // Called on drag-and-drop thread (Windows only). 70 // Called on drag-and-drop thread (Windows only).
71 #if defined(OS_WIN) 71 #if defined(OS_WIN)
72 void StartNestedMessageLoop(); 72 void StartNestedMessageLoop();
73 void QuitNestedMessageLoop(); 73 void QuitNestedMessageLoop();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Access on UI thread. 111 // Access on UI thread.
112 DownloadManager* download_manager_; 112 DownloadManager* download_manager_;
113 bool download_manager_observer_added_; 113 bool download_manager_observer_added_;
114 DownloadItem* download_item_; 114 DownloadItem* download_item_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); 116 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile);
117 }; 117 };
118 118
119 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 119 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.h ('k') | content/browser/download/drag_download_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698