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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.h

Issue 2109843003: Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test crash Created 4 years, 5 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 /* 1 /*
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 #include "public/platform/WebURLLoader.h" 35 #include "public/platform/WebURLLoader.h"
36 #include "public/platform/WebURLLoaderClient.h" 36 #include "public/platform/WebURLLoaderClient.h"
37 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
38 #include <memory> 38 #include <memory>
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class Resource; 42 class Resource;
43 class ResourceError; 43 class ResourceError;
44 class ResourceFetcher; 44 class ResourceFetcher;
45 class WebViewScheduler;
45 46
46 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour ceLoader>, protected WebURLLoaderClient { 47 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour ceLoader>, protected WebURLLoaderClient {
47 public: 48 public:
48 static ResourceLoader* create(ResourceFetcher*, Resource*); 49 static ResourceLoader* create(ResourceFetcher*, Resource*);
49 ~ResourceLoader() override; 50 ~ResourceLoader() override;
50 DECLARE_TRACE(); 51 DECLARE_TRACE();
51 52
52 void start(const ResourceRequest&, WebTaskRunner* loadingTaskRunner, bool de fersLoading); 53 void start(const ResourceRequest&, WebTaskRunner* loadingTaskRunner, WeakPtr <WebViewScheduler>, bool defersLoading);
53 void cancel(); 54 void cancel();
54 55
55 void setDefersLoading(bool); 56 void setDefersLoading(bool);
56 57
57 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); 58 void didChangePriority(ResourceLoadPriority, int intraPriorityValue);
58 59
59 // WebURLLoaderClient 60 // WebURLLoaderClient
60 // 61 //
61 // A succesful load will consist of: 62 // A succesful load will consist of:
62 // 0+ willFollowRedirect() 63 // 0+ willFollowRedirect()
(...skipping 21 matching lines...) Expand all
84 // Assumes ResourceFetcher and Resource are non-null. 85 // Assumes ResourceFetcher and Resource are non-null.
85 ResourceLoader(ResourceFetcher*, Resource*); 86 ResourceLoader(ResourceFetcher*, Resource*);
86 87
87 void requestSynchronously(const ResourceRequest&); 88 void requestSynchronously(const ResourceRequest&);
88 89
89 bool responseNeedsAccessControlCheck() const; 90 bool responseNeedsAccessControlCheck() const;
90 91
91 std::unique_ptr<WebURLLoader> m_loader; 92 std::unique_ptr<WebURLLoader> m_loader;
92 Member<ResourceFetcher> m_fetcher; 93 Member<ResourceFetcher> m_fetcher;
93 Member<Resource> m_resource; 94 Member<Resource> m_resource;
95 WeakPtr<WebViewScheduler> m_webViewScheduler;
94 }; 96 };
95 97
96 } // namespace blink 98 } // namespace blink
97 99
98 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698