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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2545023002: Clean up around FrameFetchContext (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index e65e70280feecf1d6a049a6f5b2c667753149d23..b35a7fb32398365dbe170cba75d6a5effea5d0ac 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -50,9 +50,12 @@ class ResourceRequest;
class CORE_EXPORT FrameFetchContext final : public FetchContext {
public:
- static ResourceFetcher* createContextAndFetcher(DocumentLoader* loader,
- Document* document) {
- return ResourceFetcher::create(new FrameFetchContext(loader, document));
+ static ResourceFetcher* createFetcherFromDocumentLoader(
+ DocumentLoader* loader) {
+ return ResourceFetcher::create(new FrameFetchContext(loader, nullptr));
+ }
+ static ResourceFetcher* createFetcherFromDocument(Document* document) {
+ return ResourceFetcher::create(new FrameFetchContext(nullptr, document));
}
static void provideDocumentToContext(FetchContext& context,
@@ -155,10 +158,11 @@ class CORE_EXPORT FrameFetchContext final : public FetchContext {
DECLARE_VIRTUAL_TRACE();
private:
- explicit FrameFetchContext(DocumentLoader*, Document*);
+ FrameFetchContext(DocumentLoader*, Document*);
inline DocumentLoader* masterDocumentLoader() const;
- LocalFrame* frame() const; // Can be null
+ LocalFrame* frameOfImportsController() const;
+ LocalFrame* frame() const;
void printAccessDeniedMessage(const KURL&) const;
ResourceRequestBlockedReason canRequestInternal(
Resource::Type,
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698