blob: e431e76eb2a883471b5a65683c2732f6fc46f6b9 (
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
|
// Copyright (c) 2012 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.
#ifndef CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
#define CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
#include "content/child/appcache/web_application_cache_host_impl.h"
namespace content {
class WorkerWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl {
public:
WorkerWebApplicationCacheHostImpl(
blink::WebApplicationCacheHostClient* client);
// Main resource loading is different for workers. The main resource is
// loaded by the worker using WorkerScriptLoader.
// These overrides are stubbed out.
virtual void willStartMainResourceRequest(
blink::WebURLRequest&, const blink::WebApplicationCacheHost*);
virtual void didReceiveResponseForMainResource(
const blink::WebURLResponse&);
virtual void didReceiveDataForMainResource(const char* data, int len);
virtual void didFinishLoadingMainResource(bool success);
// Cache selection is also different for workers. We know at construction
// time what cache to select and do so then.
// These overrides are stubbed out.
virtual void selectCacheWithoutManifest();
virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL);
};
} // namespace content
#endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
|