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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 10913015: Reland DownloadManager::GetAllDownloads actually does now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 public content::DownloadItem::Observer { 1094 public content::DownloadItem::Observer {
1095 public: 1095 public:
1096 AllDownloadsCompleteObserver( 1096 AllDownloadsCompleteObserver(
1097 AutomationProvider* provider, 1097 AutomationProvider* provider,
1098 IPC::Message* reply_message, 1098 IPC::Message* reply_message,
1099 content::DownloadManager* download_manager, 1099 content::DownloadManager* download_manager,
1100 ListValue* pre_download_ids); 1100 ListValue* pre_download_ids);
1101 virtual ~AllDownloadsCompleteObserver(); 1101 virtual ~AllDownloadsCompleteObserver();
1102 1102
1103 // content::DownloadManager::Observer. 1103 // content::DownloadManager::Observer.
1104 virtual void ModelChanged(content::DownloadManager* manager) OVERRIDE; 1104 virtual void OnDownloadCreated(
1105 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
1105 1106
1106 // content::DownloadItem::Observer. 1107 // content::DownloadItem::Observer.
1107 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; 1108 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
1108 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE {}
1109 1109
1110 private: 1110 private:
1111 void ReplyIfNecessary(); 1111 void ReplyIfNecessary();
1112 1112
1113 base::WeakPtr<AutomationProvider> provider_; 1113 base::WeakPtr<AutomationProvider> provider_;
1114 scoped_ptr<IPC::Message> reply_message_; 1114 scoped_ptr<IPC::Message> reply_message_;
1115 content::DownloadManager* download_manager_; 1115 content::DownloadManager* download_manager_;
1116 std::set<int> pre_download_ids_; 1116 std::set<int> pre_download_ids_;
1117 std::set<content::DownloadItem*> pending_downloads_; 1117 std::set<content::DownloadItem*> pending_downloads_;
1118 1118
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 base::WeakPtr<AutomationProvider> automation_; 1826 base::WeakPtr<AutomationProvider> automation_;
1827 scoped_ptr<IPC::Message> reply_message_; 1827 scoped_ptr<IPC::Message> reply_message_;
1828 int new_window_id_; 1828 int new_window_id_;
1829 int num_loads_; 1829 int num_loads_;
1830 1830
1831 DISALLOW_COPY_AND_ASSIGN( 1831 DISALLOW_COPY_AND_ASSIGN(
1832 BrowserOpenedWithExistingProfileNotificationObserver); 1832 BrowserOpenedWithExistingProfileNotificationObserver);
1833 }; 1833 };
1834 1834
1835 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1835 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698