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

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

Issue 2578983002: Loading: move V8DOMActivityLogger dependency from core/fetch (Closed)
Patch Set: merge 2572373003/#ps20001 Created 4 years 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define FrameFetchContext_h 32 #define FrameFetchContext_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/fetch/FetchContext.h" 35 #include "core/fetch/FetchContext.h"
36 #include "core/fetch/ResourceFetcher.h" 36 #include "core/fetch/ResourceFetcher.h"
37 #include "core/frame/csp/ContentSecurityPolicy.h" 37 #include "core/frame/csp/ContentSecurityPolicy.h"
38 #include "core/loader/LinkLoader.h" 38 #include "core/loader/LinkLoader.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "platform/network/ResourceRequest.h" 40 #include "platform/network/ResourceRequest.h"
41 41
42 namespace wtf {
43
44 class AtomicString;
45
46 } // namespace wtf
47
42 namespace blink { 48 namespace blink {
43 49
44 class Document; 50 class Document;
45 class DocumentLoader; 51 class DocumentLoader;
46 class LocalFrame; 52 class LocalFrame;
47 class ResourceError; 53 class ResourceError;
48 class ResourceResponse; 54 class ResourceResponse;
49 55
50 class CORE_EXPORT FrameFetchContext final : public FetchContext { 56 class CORE_EXPORT FrameFetchContext final : public FetchContext {
51 public: 57 public:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 double finishTime, 111 double finishTime,
106 int64_t encodedDataLength) override; 112 int64_t encodedDataLength) override;
107 void dispatchDidFail(unsigned long identifier, 113 void dispatchDidFail(unsigned long identifier,
108 const ResourceError&, 114 const ResourceError&,
109 int64_t encodedDataLength, 115 int64_t encodedDataLength,
110 bool isInternalRequest) override; 116 bool isInternalRequest) override;
111 117
112 bool shouldLoadNewResource(Resource::Type) const override; 118 bool shouldLoadNewResource(Resource::Type) const override;
113 void willStartLoadingResource(unsigned long identifier, 119 void willStartLoadingResource(unsigned long identifier,
114 ResourceRequest&, 120 ResourceRequest&,
115 Resource::Type) override; 121 Resource::Type,
122 const AtomicString& fetchInitiatorName,
123 bool forPreload) override;
116 void didLoadResource(Resource*) override; 124 void didLoadResource(Resource*) override;
117 125
118 void addResourceTiming(const ResourceTimingInfo&) override; 126 void addResourceTiming(const ResourceTimingInfo&) override;
119 bool allowImage(bool imagesEnabled, const KURL&) const override; 127 bool allowImage(bool imagesEnabled, const KURL&) const override;
120 ResourceRequestBlockedReason canRequest( 128 ResourceRequestBlockedReason canRequest(
121 Resource::Type, 129 Resource::Type,
122 const ResourceRequest&, 130 const ResourceRequest&,
123 const KURL&, 131 const KURL&,
124 const ResourceLoaderOptions&, 132 const ResourceLoaderOptions&,
125 bool forPreload, 133 bool forPreload,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 192 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
185 // currently leak because ComputedStyle and its data are not on the heap. 193 // currently leak because ComputedStyle and its data are not on the heap.
186 // See crbug.com/383860 for details. 194 // See crbug.com/383860 for details.
187 WeakMember<Document> m_document; 195 WeakMember<Document> m_document;
188 Member<DocumentLoader> m_documentLoader; 196 Member<DocumentLoader> m_documentLoader;
189 }; 197 };
190 198
191 } // namespace blink 199 } // namespace blink
192 200
193 #endif 201 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698