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

Side by Side Diff: components/download/internal/test/empty_client.cc

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased Created 3 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2017 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 #include "components/download/internal/test/empty_client.h"
6
7 namespace download {
8 namespace test {
9
10 void EmptyClient::OnServiceInitialized(
11 const std::vector<std::string>& outstanding_download_guids) {}
12
13 Client::ShouldDownload EmptyClient::OnDownloadStarted(
14 const std::string& guid,
15 const std::vector<GURL>& url_chain,
16 const scoped_refptr<const net::HttpResponseHeaders>& headers) {
17 return Client::ShouldDownload::CONTINUE;
18 }
19
20 void EmptyClient::OnDownloadUpdated(const std::string& guid,
21 uint64_t bytes_downloaded) {}
22
23 void EmptyClient::OnDownloadFailed(const std::string& guid) {}
24
25 void EmptyClient::OnDownloadTimedOut(const std::string& guid) {}
26
27 void EmptyClient::OnDownloadAborted(const std::string& guid) {}
28
29 void EmptyClient::OnDownloadSucceeded(const std::string& guid,
30 const base::FilePath& path,
31 uint64_t size) {}
32
33 } // namespace test
34 } // namespace download
OLDNEW
« no previous file with comments | « components/download/internal/test/empty_client.h ('k') | components/download/internal/test/mock_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698