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

Side by Side Diff: content/public/browser/download_item.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 // Each download is represented by a DownloadItem, and all DownloadItems 5 // Each download is represented by a DownloadItem, and all DownloadItems
6 // are owned by the DownloadManager which maintains a global list of all 6 // are owned by the DownloadManager which maintains a global list of all
7 // downloads. DownloadItems are created when a user initiates a download, 7 // downloads. DownloadItems are created when a user initiates a download,
8 // and exist for the duration of the browser life time. 8 // and exist for the duration of the browser life time.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 virtual bool GetOpenWhenComplete() const = 0; 292 virtual bool GetOpenWhenComplete() const = 0;
293 293
294 // Returns true if the download has been auto-opened by the system. 294 // Returns true if the download has been auto-opened by the system.
295 virtual bool GetAutoOpened() = 0; 295 virtual bool GetAutoOpened() = 0;
296 296
297 // Returns true if the download has been opened. 297 // Returns true if the download has been opened.
298 virtual bool GetOpened() const = 0; 298 virtual bool GetOpened() const = 0;
299 299
300 // Misc State accessors --------------------------------------------------- 300 // Misc State accessors ---------------------------------------------------
301 301
302 // Returns true if this item matches |query|. |query| must be lower-cased.
303 virtual bool MatchesQuery(const string16& query) const = 0;
304
305 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; 302 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0;
306 virtual BrowserContext* GetBrowserContext() const = 0; 303 virtual BrowserContext* GetBrowserContext() const = 0;
307 virtual WebContents* GetWebContents() const = 0; 304 virtual WebContents* GetWebContents() const = 0;
308 305
309 // External state transitions/setters ---------------------------------------- 306 // External state transitions/setters ----------------------------------------
310 // TODO(rdsmith): These should all be removed; the download item should 307 // TODO(rdsmith): These should all be removed; the download item should
311 // control its own state transitions. 308 // control its own state transitions.
312 309
313 // Called by the delegate if it delayed opening the download after 310 // Called by the delegate if it delayed opening the download after
314 // the download has actually been opened. 311 // the download has actually been opened.
(...skipping 20 matching lines...) Expand all
335 virtual void SetDisplayName(const FilePath& name) = 0; 332 virtual void SetDisplayName(const FilePath& name) = 0;
336 333
337 // Debug/testing ------------------------------------------------------------- 334 // Debug/testing -------------------------------------------------------------
338 virtual std::string DebugString(bool verbose) const = 0; 335 virtual std::string DebugString(bool verbose) const = 0;
339 virtual void MockDownloadOpenForTesting() = 0; 336 virtual void MockDownloadOpenForTesting() = 0;
340 }; 337 };
341 338
342 } // namespace content 339 } // namespace content
343 340
344 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 341 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698