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: components/download/public/clients.h

Issue 2870753003: Add a Model to the download component. (Closed)
Patch Set: Renamed test base class Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ 5 #ifndef COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
6 #define COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ 6 #define COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
7 7
8 namespace download { 8 namespace download {
9 9
10 // A list of all clients that are able to make download requests through the 10 // A list of all clients that are able to make download requests through the
11 // DownloadService. 11 // DownloadService.
12 // To add a new client, update the metric DownloadService.DownloadClients in 12 // To add a new client, update the metric DownloadService.DownloadClients in
13 // histograms.xml and make sure to keep this list in sync. Additions should be 13 // histograms.xml and make sure to keep this list in sync. Additions should be
14 // treated as APPEND ONLY to make sure to keep both UMA metric semantics correct 14 // treated as APPEND ONLY to make sure to keep both UMA metric semantics correct
15 // but also to make sure the underlying database properly associates each 15 // but also to make sure the underlying database properly associates each
16 // download with the right client. 16 // download with the right client.
17 enum class DownloadClient { 17 enum class DownloadClient {
18 // Represents an uninitialized DownloadClient variable. 18 // Represents an uninitialized DownloadClient variable.
19 DOWNLOAD_CLIENT_INVALID = 0, 19 INVALID = 0,
20 20
21 DOWNLOAD_CLIENT_OFFLINE_PAGE_PREFETCH = 1, 21 // Test client values. Meant to be used by the testing framework and not
22 // production code. Callers will be unable to access the DownloadService with
23 // these test APIs.
24 TEST = 1,
22 25
23 DOWNLOAD_CLIENT_BOUNDARY = 2, 26 OFFLINE_PAGE_PREFETCH = 2,
27
28 BOUNDARY = 3,
24 }; 29 };
25 30
26 } // namespace download 31 } // namespace download
27 32
28 #endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ 33 #endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
OLDNEW
« no previous file with comments | « components/download/internal/test/test_store.cc ('k') | components/download/public/download_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698