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

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

Issue 2557053002: Use LocalFrame::client() than getting the FrameLoader and then call client() on it. (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 #include "core/loader/LinkLoader.h" 39 #include "core/loader/LinkLoader.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "platform/network/ResourceRequest.h" 41 #include "platform/network/ResourceRequest.h"
42 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ClientHintsPreferences; 46 class ClientHintsPreferences;
47 class Document; 47 class Document;
48 class DocumentLoader; 48 class DocumentLoader;
49 class FrameLoaderClient;
49 class LocalFrame; 50 class LocalFrame;
50 class ResourceError; 51 class ResourceError;
51 class ResourceResponse; 52 class ResourceResponse;
52 53
53 class CORE_EXPORT FrameFetchContext final : public FetchContext { 54 class CORE_EXPORT FrameFetchContext final : public FetchContext {
54 public: 55 public:
55 static ResourceFetcher* createFetcherFromDocumentLoader( 56 static ResourceFetcher* createFetcherFromDocumentLoader(
56 DocumentLoader* loader) { 57 DocumentLoader* loader) {
57 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr)); 58 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr));
58 } 59 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 RefPtr<WebTaskRunner> loadingTaskRunner() const override; 169 RefPtr<WebTaskRunner> loadingTaskRunner() const override;
169 170
170 DECLARE_VIRTUAL_TRACE(); 171 DECLARE_VIRTUAL_TRACE();
171 172
172 private: 173 private:
173 FrameFetchContext(DocumentLoader*, Document*); 174 FrameFetchContext(DocumentLoader*, Document*);
174 inline DocumentLoader* masterDocumentLoader() const; 175 inline DocumentLoader* masterDocumentLoader() const;
175 176
176 LocalFrame* frameOfImportsController() const; 177 LocalFrame* frameOfImportsController() const;
177 LocalFrame* frame() const; 178 LocalFrame* frame() const;
179
180 FrameLoaderClient* frameLoaderClient() const;
181
178 void printAccessDeniedMessage(const KURL&) const; 182 void printAccessDeniedMessage(const KURL&) const;
179 ResourceRequestBlockedReason canRequestInternal( 183 ResourceRequestBlockedReason canRequestInternal(
180 Resource::Type, 184 Resource::Type,
181 const ResourceRequest&, 185 const ResourceRequest&,
182 const KURL&, 186 const KURL&,
183 const ResourceLoaderOptions&, 187 const ResourceLoaderOptions&,
184 bool forPreload, 188 bool forPreload,
185 FetchRequest::OriginRestriction, 189 FetchRequest::OriginRestriction,
186 ResourceRequest::RedirectStatus) const; 190 ResourceRequest::RedirectStatus) const;
187 191
(...skipping 11 matching lines...) Expand all
199 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 203 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
200 // currently leak because ComputedStyle and its data are not on the heap. 204 // currently leak because ComputedStyle and its data are not on the heap.
201 // See crbug.com/383860 for details. 205 // See crbug.com/383860 for details.
202 WeakMember<Document> m_document; 206 WeakMember<Document> m_document;
203 Member<DocumentLoader> m_documentLoader; 207 Member<DocumentLoader> m_documentLoader;
204 }; 208 };
205 209
206 } // namespace blink 210 } // namespace blink
207 211
208 #endif 212 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698