Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/renderer/service_worker/service_worker_fetch_context_info_impl.h

Issue 2701753003: [WIP] off-main-thread loading
Patch Set: small fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H _
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H _
7
8 #include "content/common/worker_fetch_context_factory.mojom.h"
9 #include "third_party/WebKit/public/platform/WebWorkerFetchContext.h"
10
11 namespace content {
12
13 class ServiceWorkerFetchContextInfoImpl
14 : public blink::WebWorkerFetchContextInfo {
15 public:
16 ServiceWorkerFetchContextInfoImpl(
17 mojom::WorkerFetchContextFactoryPtrInfo factory_info,
18 int service_worker_provider_id);
19 ~ServiceWorkerFetchContextInfoImpl() override;
20
21 std::unique_ptr<blink::WebWorkerFetchContext> CreateContext(
22 base::SingleThreadTaskRunner* loading_task_runner) override;
23 void setAppCacheHostID(int appcache_host_id) override;
24 void willSendRequest(blink::WebURLRequest& request) override;
25
26 private:
27 mojom::WorkerFetchContextFactoryPtrInfo factory_info_;
28 const int service_worker_provider_id_;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698