Chromium Code Reviews| 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 { | |
| 18 // Represents an uninitialized DownloadClient variable. | |
| 19 INVALID = 0, | |
| 20 | |
| 21 OFFLINE_PAGE_PREFETCH = 1, | |
| 22 | |
| 23 BOUNDARY = 2, | |
|
Peter Beverloo
2017/05/03 13:02:50
You'd use this as download::BOUNDARY, which means
David Trainor- moved to gerrit
2017/05/03 17:42:03
Done.
| |
| 24 }; | |
| 25 | |
| 26 } // namespace download | |
| 27 | |
| 28 #endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ | |
| OLD | NEW |