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
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8
9package download_pb;
10
11// This should stay in sync with the download::DownloadSource enum in
12// components/download/public/core/download_source.h.
13enum DownloadSource {
14  UNKNOWN = 0;
15  NAVIGATION = 1;
16  DRAG_AND_DROP = 2;
17  FROM_RENDERER = 3;
18  EXTENSION_API = 4;
19  EXTENSION_INSTALLER = 5;
20  INTERNAL_API = 6;
21  WEB_CONTENTS_API = 7;
22  OFFLINE_PAGE = 8;
23  CONTEXT_MENU = 9;
24  RETRY = 10;
25}
26