blob: 291fe2f69554f4878676be2ad05366c2fc631729 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright 2019 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.
#include "third_party/blink/renderer/core/loader/appcache/application_cache_host_for_shared_worker.h"
namespace blink {
ApplicationCacheHostForSharedWorker::ApplicationCacheHostForSharedWorker(
DocumentLoader* document_loader,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: ApplicationCacheHost(document_loader,
nullptr, /* interface_broker */
std::move(task_runner)) {}
ApplicationCacheHostForSharedWorker::~ApplicationCacheHostForSharedWorker() =
default;
bool ApplicationCacheHostForSharedWorker::Update() {
// ApplicationCacheHost::Update() is called from JavaScript's
// applicationCache.update() that is not exposed to workers.
// https://html.spec.whatwg.org/C/#application-cache-api
NOTREACHED();
return false;
}
bool ApplicationCacheHostForSharedWorker::SwapCache() {
// ApplicationCacheHost::SwapCache() is called from JavaScript's
// applicationCache.swapCache() that is not exposed to workers.
// https://html.spec.whatwg.org/C/#application-cache-api
NOTREACHED();
return false;
}
void ApplicationCacheHostForSharedWorker::LogMessage(
mojom::blink::ConsoleMessageLevel log_level,
const String& message) {}
void ApplicationCacheHostForSharedWorker::SetSubresourceFactory(
network::mojom::blink::URLLoaderFactoryPtr url_loader_factory) {}
void ApplicationCacheHostForSharedWorker::SelectCacheWithoutManifest() {
// This can be called during WorkerShadowPage initialization.
// TODO(https://crbug.com/538751): Add NOTREACHED() here after
// WorkerShadowPage is removed.
}
void ApplicationCacheHostForSharedWorker::SelectCacheWithManifest(
const KURL& manifest_url) {
// This can be called during WorkerShadowPage initialization.
// TODO(https://crbug.com/538751): Add NOTREACHED() here after
// WorkerShadowPage is removed.
}
} // namespace blink
|