1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30

content / browser / download / embedder_download_data.proto [blame]

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";
option optimize_for = LITE_RUNTIME;

package content.proto;

// EmbedderDownloadData contains data that is stored in the download history
// database.
message EmbedderDownloadData {
  optional StoragePartitionConfig storage_partition_config = 1;
}

// StoragePartitionConfig stores data from the content::StoragePartitionConfig
// class. It enables this data to be serialized for storage in the download
// history database.
message StoragePartitionConfig {
  enum FallbackMode {
    kNone = 0;
    kPartitionOnDisk = 1;
    kPartitionInMemory = 2;
  }

  required string partition_domain = 1;
  required string partition_name = 2;
  required bool in_memory = 3;
  required FallbackMode fallback_mode = 4;
}