Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #ifndef mozilla_dom_cache_Types_h
8 : #define mozilla_dom_cache_Types_h
9 :
10 : #include <stdint.h>
11 : #include "nsCOMPtr.h"
12 : #include "nsIFile.h"
13 : #include "nsString.h"
14 :
15 : namespace mozilla {
16 : namespace dom {
17 : namespace cache {
18 :
19 : enum Namespace
20 : {
21 : DEFAULT_NAMESPACE,
22 : CHROME_ONLY_NAMESPACE,
23 : NUMBER_OF_NAMESPACES
24 : };
25 : static const Namespace INVALID_NAMESPACE = NUMBER_OF_NAMESPACES;
26 :
27 : typedef int64_t CacheId;
28 : static const CacheId INVALID_CACHE_ID = -1;
29 :
30 0 : struct QuotaInfo
31 : {
32 : nsCOMPtr<nsIFile> mDir;
33 : nsCString mSuffix;
34 : nsCString mGroup;
35 : nsCString mOrigin;
36 : };
37 :
38 : } // namespace cache
39 : } // namespace dom
40 : } // namespace mozilla
41 :
42 : #endif // mozilla_dom_cache_Types_h
|