Chromium Code Reviews| Index: components/download/public/clients.h |
| diff --git a/components/download/public/clients.h b/components/download/public/clients.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..73c7af358a5b62804cd61488b2f8e22338b1aa97 |
| --- /dev/null |
| +++ b/components/download/public/clients.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ |
| +#define COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ |
| + |
| +namespace download { |
| + |
| +// A list of all clients that are able to make download requests through the |
| +// DownloadService. |
| +// To add a new client, add the metric here and update |
| +// DownloadService.DownloadClients in histograms.xml. |
|
Peter Beverloo
2017/05/02 16:12:21
nit: mention that it's append only and that existi
David Trainor- moved to gerrit
2017/05/03 06:02:59
Will do. Histogram isn't added yet since there is
|
| +enum DownloadClient { |
| + // Represents an uninitialized DownloadClient variable. |
| + INVALID = 0, |
| + |
| + OFFLINE_PAGE_PREFETCH = 1, |
| + |
| + BOUNDARY = 2, |
| +}; |
| + |
| +} // namespace download |
| + |
| +#endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_ |