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

Side by Side Diff: chrome/browser/download/download_completion_observer_win.h

Issue 10832174: Fire a notification in Windows 8 metro chrome which informs the user about a completed download. Th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_DOWNLOAD_COMPLETION_OBSERVER_WIN_H_
6 #define CHROME_BROWSER_DOWNLOAD_COMPLETION_OBSERVER_WIN_H_
7
8 #include "base/basictypes.h"
9 #include "content/public/browser/download_item.h"
10 #include "content/public/browser/download_manager.h"
11
12 // Tracks download item completions and notifies any interested parties
13 // (Windows 8 metro) about the same. On Windows 8 we display metro style
14 // notifications when a download completes.
15 class DownloadCompletionObserver
16 : public content::DownloadManager::Observer,
17 public content::DownloadItem::Observer {
18 public:
19 DownloadCompletionObserver() {}
asanka 2012/08/07 19:05:15 Nit: Perhaps provide a DownloadManager* to the con
ananta 2012/08/07 21:40:31 Done.
20 ~DownloadCompletionObserver() {}
21
22 void Initialize(content::DownloadManager* download_manager);
23
24 // Methods inherited from content::DownloadManager::Observer.
25 virtual void OnDownloadCreated(
26 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
27 virtual void ManagerGoingDown(content::DownloadManager* manager) OVERRIDE;
28
29 // Methods inherited from content::DownloadItem::Observer.
30 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
31 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE {}
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(DownloadCompletionObserver);
35 };
36
37 #endif // CHROME_BROWSER_DOWNLOAD_COMPLETION_OBSERVER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698