mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
|
// Copyright 2017 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.
|
||
|
|
||
|
module content.mojom;
|
||
|
|
||
|
import "content/public/common/appcache_info.mojom";
|
||
|
import "url/mojo/url.mojom";
|
||
|
|
||
|
enum AppCacheEventID {
|
||
|
APPCACHE_CHECKING_EVENT,
|
||
|
APPCACHE_ERROR_EVENT,
|
||
|
APPCACHE_NO_UPDATE_EVENT,
|
||
|
APPCACHE_DOWNLOADING_EVENT,
|
||
|
APPCACHE_PROGRESS_EVENT,
|
||
|
APPCACHE_UPDATE_READY_EVENT,
|
||
|
APPCACHE_CACHED_EVENT,
|
||
|
APPCACHE_OBSOLETE_EVENT,
|
||
|
};
|
||
|
|
||
|
enum AppCacheErrorReason {
|
||
|
APPCACHE_MANIFEST_ERROR,
|
||
|
APPCACHE_SIGNATURE_ERROR,
|
||
|
APPCACHE_RESOURCE_ERROR,
|
||
|
APPCACHE_CHANGED_ERROR,
|
||
|
APPCACHE_ABORT_ERROR,
|
||
|
APPCACHE_QUOTA_ERROR,
|
||
|
APPCACHE_POLICY_ERROR,
|
||
|
APPCACHE_UNKNOWN_ERROR,
|
||
|
};
|
||
|
|
||
|
struct AppCacheResourceInfo {
|
||
|
url.mojom.Url url;
|
||
|
int64 size;
|
||
|
bool is_master;
|
||
|
bool is_manifest;
|
||
|
bool is_intercept;
|
||
|
bool is_fallback;
|
||
|
bool is_foreign;
|
||
|
bool is_explicit;
|
||
|
int64 response_id;
|
||
|
};
|
||
|
|
||
|
struct AppCacheErrorDetails {
|
||
|
string message;
|
||
|
AppCacheErrorReason reason = APPCACHE_UNKNOWN_ERROR;
|
||
|
url.mojom.Url url;
|
||
|
int32 status;
|
||
|
bool is_cross_origin;
|
||
|
};
|