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

Side by Side Diff: content/public/test/mock_download_manager.h

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded code Created 7 years, 2 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 | « content/public/test/download_test_observer.cc ('k') | no next file » | 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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/public/browser/download_manager.h" 10 #include "content/public/browser/download_manager.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int64 total_bytes, 109 int64 total_bytes,
110 DownloadItem::DownloadState state, 110 DownloadItem::DownloadState state,
111 DownloadDangerType danger_type, 111 DownloadDangerType danger_type,
112 DownloadInterruptReason interrupt_reason, 112 DownloadInterruptReason interrupt_reason,
113 bool opened) OVERRIDE; 113 bool opened) OVERRIDE;
114 114
115 MOCK_METHOD1(MockCreateDownloadItem, 115 MOCK_METHOD1(MockCreateDownloadItem,
116 DownloadItem*(CreateDownloadItemAdapter adapter)); 116 DownloadItem*(CreateDownloadItemAdapter adapter));
117 117
118 MOCK_CONST_METHOD0(InProgressCount, int()); 118 MOCK_CONST_METHOD0(InProgressCount, int());
119 MOCK_CONST_METHOD0(NonMaliciousInProgressCount, int());
119 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 120 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
120 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); 121 MOCK_METHOD0(CheckForHistoryFilesRemoval, void());
121 MOCK_METHOD1(GetDownload, DownloadItem*(uint32 id)); 122 MOCK_METHOD1(GetDownload, DownloadItem*(uint32 id));
122 }; 123 };
123 124
124 } // namespace content 125 } // namespace content
125 126
126 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 127 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/test/download_test_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698