Bug 1733673 [wpt PR 31066] - Annotate CSS Transforms WPT reftests as fuzzy where...
[gecko.git] / dom / cache / SavedTypes.h
blob4eac46640a1f08c187f14e9634c345cf68273ce5
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/. */
7 #ifndef mozilla_dom_cache_SavedTypes_h
8 #define mozilla_dom_cache_SavedTypes_h
10 // NOTE: This cannot be rolled into Types.h because the IPC dependency.
11 // breaks webidl unified builds.
13 #include "mozilla/dom/cache/CacheTypes.h"
14 #include "mozilla/dom/cache/Types.h"
15 #include "nsCOMPtr.h"
16 #include "nsID.h"
18 namespace mozilla {
19 namespace dom {
20 namespace cache {
22 struct SavedRequest {
23 SavedRequest() : mHasBodyId(false), mCacheId(0) {
24 mBodyId.m0 = 0;
25 mBodyId.m1 = 0;
26 mBodyId.m2 = 0;
27 memset(mBodyId.m3, 0, sizeof(mBodyId.m3));
28 mValue.body() = Nothing();
30 CacheRequest mValue;
31 bool mHasBodyId;
32 nsID mBodyId;
33 CacheId mCacheId;
36 struct SavedResponse {
37 SavedResponse() : mHasBodyId(false), mCacheId(0) {
38 mBodyId.m0 = 0;
39 mBodyId.m1 = 0;
40 mBodyId.m2 = 0;
41 memset(mBodyId.m3, 0, sizeof(mBodyId.m3));
42 mValue.body() = Nothing();
44 CacheResponse mValue;
45 bool mHasBodyId;
46 nsID mBodyId;
47 CacheId mCacheId;
50 } // namespace cache
51 } // namespace dom
52 } // namespace mozilla
54 #endif // mozilla_dom_cache_SavedTypes_h