summaryrefslogtreecommitdiff
path: root/chromium/net/disk_cache/errors.h
blob: 1c69d42f770b5b37baf523d99bfe8606a995a832 (plain)
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
31
32
33
// Copyright (c) 2012 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.

// Error codes reported by self tests or to UMA.

#ifndef NET_DISK_CACHE_ERRORS_H__
#define NET_DISK_CACHE_ERRORS_H__

namespace disk_cache {

enum {
  ERR_NO_ERROR = 0,
  ERR_INIT_FAILED = -1,
  ERR_INVALID_TAIL = -2,
  ERR_INVALID_HEAD = -3,
  ERR_INVALID_PREV = -4,
  ERR_INVALID_NEXT = -5,
  ERR_INVALID_ENTRY = -6,
  ERR_INVALID_ADDRESS = -7,
  ERR_INVALID_LINKS = -8,
  ERR_NUM_ENTRIES_MISMATCH = -9,
  ERR_READ_FAILURE = -10,
  ERR_PREVIOUS_CRASH = -11,
  ERR_STORAGE_ERROR = -12,
  ERR_INVALID_MASK = -13,
  ERR_CACHE_DOOMED = -14,   // Not really an error condition.
  ERR_CACHE_CREATED = -15   // Not really an error condition.
};

}  // namespace disk_cache

#endif  // NET_DISK_CACHE_ERRORS_H__