OLD | NEW |
---|---|
(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 #ifndef COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ | |
6 #define COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ | |
7 | |
8 namespace download { | |
9 | |
10 // A list of all clients that are able to make download requests through the | |
11 // DownloadService. | |
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 | |
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 | |
16 // download with the right client. | |
17 enum DownloadClient { | |
dcheng
2017/05/04 00:19:26
enum class here as well?
David Trainor- moved to gerrit
2017/05/04 16:15:48
Done.
| |
18 // Represents an uninitialized DownloadClient variable. | |
19 DOWNLOAD_CLIENT_INVALID = 0, | |
20 | |
21 DOWNLOAD_CLIENT_OFFLINE_PAGE_PREFETCH = 1, | |
22 | |
23 DOWNLOAD_CLIENT_BOUNDARY = 2, | |
24 }; | |
25 | |
26 } // namespace download | |
27 | |
28 #endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ | |
OLD | NEW |