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

Side by Side Diff: chrome/browser/ui/webui/downloads_dom_handler.h

Issue 10905215: Kill DownloadManager::SearchDownloads, DownloadItem::MatchesQuery (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
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_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // observing so that RemoveObserver will be called for all of them. 100 // observing so that RemoveObserver will be called for all of them.
101 typedef std::set<content::DownloadItem*> DownloadSet; 101 typedef std::set<content::DownloadItem*> DownloadSet;
102 102
103 // Schedules a call to SendCurrentDownloads() in the next message loop 103 // Schedules a call to SendCurrentDownloads() in the next message loop
104 // iteration. 104 // iteration.
105 void ScheduleSendCurrentDownloads(); 105 void ScheduleSendCurrentDownloads();
106 106
107 // Sends the current list of downloads to the page. 107 // Sends the current list of downloads to the page.
108 void SendCurrentDownloads(); 108 void SendCurrentDownloads();
109 109
110 // Fills |downloads| with all the items for both DownloadManagers matching
111 // |search_text_|.
112 void SearchDownloads(content::DownloadManager::DownloadVector* downloads);
113
114 // Displays a native prompt asking the user for confirmation after accepting 110 // Displays a native prompt asking the user for confirmation after accepting
115 // the dangerous download specified by |dangerous|. The function returns 111 // the dangerous download specified by |dangerous|. The function returns
116 // immediately, and will invoke DangerPromptAccepted() asynchronously if the 112 // immediately, and will invoke DangerPromptAccepted() asynchronously if the
117 // user accepts the dangerous download. The native prompt will observe 113 // user accepts the dangerous download. The native prompt will observe
118 // |dangerous| until either the dialog is dismissed or |dangerous| is no 114 // |dangerous| until either the dialog is dismissed or |dangerous| is no
119 // longer an in-progress dangerous download. 115 // longer an in-progress dangerous download.
120 void ShowDangerPrompt(content::DownloadItem* dangerous); 116 void ShowDangerPrompt(content::DownloadItem* dangerous);
121 117
122 // Conveys danger acceptance from the DownloadDangerPrompt to the 118 // Conveys danger acceptance from the DownloadDangerPrompt to the
123 // DownloadItem. 119 // DownloadItem.
(...skipping 14 matching lines...) Expand all
138 134
139 // Whether a call to SendCurrentDownloads() is currently scheduled. 135 // Whether a call to SendCurrentDownloads() is currently scheduled.
140 bool update_scheduled_; 136 bool update_scheduled_;
141 137
142 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_; 138 base::WeakPtrFactory<DownloadsDOMHandler> weak_ptr_factory_;
143 139
144 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); 140 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler);
145 }; 141 };
146 142
147 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 143 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698