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

Side by Side Diff: components/download/public/clients.h

Issue 2851303003: Add the download component and initial setup (Closed)
Patch Set: Addressed comments 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
« no previous file with comments | « components/download/public/client.h ('k') | components/download/public/download_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 class DownloadClient {
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_
OLDNEW
« no previous file with comments | « components/download/public/client.h ('k') | components/download/public/download_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698