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

Side by Side Diff: third_party/WebKit/Source/core/loader/WorkerFetchContext.h

Issue 2893533002: Implement WorkerFetchContext::AddResourceTiming() for off-main-thread-fetch (Closed)
Patch Set: add performance-timeline.https-expected.txt Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkerFetchContext_h 5 #ifndef WorkerFetchContext_h
6 #define WorkerFetchContext_h 6 #define WorkerFetchContext_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/loader/BaseFetchContext.h" 10 #include "core/loader/BaseFetchContext.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // FetchContext implementation: 56 // FetchContext implementation:
57 // TODO(horo): Implement more methods. 57 // TODO(horo): Implement more methods.
58 std::unique_ptr<WebURLLoader> CreateURLLoader() override; 58 std::unique_ptr<WebURLLoader> CreateURLLoader() override;
59 void PrepareRequest(ResourceRequest&, RedirectType) override; 59 void PrepareRequest(ResourceRequest&, RedirectType) override;
60 bool IsControlledByServiceWorker() const override; 60 bool IsControlledByServiceWorker() const override;
61 RefPtr<WebTaskRunner> LoadingTaskRunner() const override; 61 RefPtr<WebTaskRunner> LoadingTaskRunner() const override;
62 62
63 void AddAdditionalRequestHeaders(ResourceRequest&, 63 void AddAdditionalRequestHeaders(ResourceRequest&,
64 FetchResourceType) override; 64 FetchResourceType) override;
65 void AddResourceTiming(const ResourceTimingInfo&) override;
65 66
66 DECLARE_VIRTUAL_TRACE(); 67 DECLARE_VIRTUAL_TRACE();
67 68
68 private: 69 private:
69 WorkerFetchContext(WorkerGlobalScope&, 70 WorkerFetchContext(WorkerGlobalScope&,
70 std::unique_ptr<WebWorkerFetchContext>); 71 std::unique_ptr<WebWorkerFetchContext>);
71 72
72 Member<WorkerGlobalScope> worker_global_scope_; 73 Member<WorkerGlobalScope> worker_global_scope_;
73 std::unique_ptr<WebWorkerFetchContext> web_context_; 74 std::unique_ptr<WebWorkerFetchContext> web_context_;
74 Member<ResourceFetcher> resource_fetcher_; 75 Member<ResourceFetcher> resource_fetcher_;
75 RefPtr<WebTaskRunner> loading_task_runner_; 76 RefPtr<WebTaskRunner> loading_task_runner_;
76 }; 77 };
77 78
78 } // namespace blink 79 } // namespace blink
79 80
80 #endif // WorkerFetchContext_h 81 #endif // WorkerFetchContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698