blob: f046a63cf23d01f74d0ded66cb788b12984523d1 (
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
|
// 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_worker.h"
namespace blink {
ApplicationCacheHostForWorker::ApplicationCacheHostForWorker(
const base::UnguessableToken& appcache_host_id,
const BrowserInterfaceBrokerProxy& interface_broker_proxy,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
ContextLifecycleNotifier* notifier)
: ApplicationCacheHost(interface_broker_proxy,
std::move(task_runner),
notifier) {
SetHostID(appcache_host_id ? appcache_host_id
: base::UnguessableToken::Create());
BindBackend();
}
ApplicationCacheHostForWorker::~ApplicationCacheHostForWorker() = default;
} // namespace blink
|