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

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

Issue 2844913002: Drop GetFrame()->GetDocument() usage in FrameFetchContext (Closed)
Patch Set: Add comment in SendMessageToConsoleForPossiblyNullDocument 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/BaseFetchContext.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 // 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 BaseFetchContext_h 5 #ifndef BaseFetchContext_h
6 #define BaseFetchContext_h 6 #define BaseFetchContext_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/frame/UseCounter.h" 9 #include "core/frame/UseCounter.h"
10 #include "core/frame/csp/ContentSecurityPolicy.h" 10 #include "core/frame/csp/ContentSecurityPolicy.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 SecurityOrigin* GetSecurityOrigin() const override; 51 SecurityOrigin* GetSecurityOrigin() const override;
52 52
53 DECLARE_VIRTUAL_TRACE(); 53 DECLARE_VIRTUAL_TRACE();
54 54
55 protected: 55 protected:
56 // Used for security checks. It is valid that they return nullptr, 56 // Used for security checks. It is valid that they return nullptr,
57 // while returning nullptr may result in disable some security checks. 57 // while returning nullptr may result in disable some security checks.
58 virtual ContentSettingsClient* GetContentSettingsClient() const = 0; 58 virtual ContentSettingsClient* GetContentSettingsClient() const = 0;
59 virtual Settings* GetSettings() const = 0; 59 virtual Settings* GetSettings() const = 0;
60 virtual SubresourceFilter* GetSubresourceFilter() const = 0; 60 virtual SubresourceFilter* GetSubresourceFilter() const = 0;
61 virtual SecurityContext* GetMainResourceSecurityContext() const = 0; 61 virtual SecurityContext* GetParentSecurityContext() const = 0;
62 62
63 // Note: subclasses are expected to override following methods. 63 // Note: subclasses are expected to override following methods.
64 // Used in the default implementation for CanRequest, CanFollowRedirect 64 // Used in the default implementation for CanRequest, CanFollowRedirect
65 // and AllowResponse. 65 // and AllowResponse.
66 virtual bool ShouldBlockRequestByInspector(const ResourceRequest&) const = 0; 66 virtual bool ShouldBlockRequestByInspector(const ResourceRequest&) const = 0;
67 virtual void DispatchDidBlockRequest(const ResourceRequest&, 67 virtual void DispatchDidBlockRequest(const ResourceRequest&,
68 const FetchInitiatorInfo&, 68 const FetchInitiatorInfo&,
69 ResourceRequestBlockedReason) const = 0; 69 ResourceRequestBlockedReason) const = 0;
70 // TODO(kinuko): Consider implementing this on ExecutionContext and 70 // TODO(kinuko): Consider implementing this on ExecutionContext and
71 // remove this virtual method. 71 // remove this virtual method.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 104 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
105 // currently leak because ComputedStyle and its data are not on the heap. 105 // currently leak because ComputedStyle and its data are not on the heap.
106 // See crbug.com/383860 for details. 106 // See crbug.com/383860 for details.
107 WeakMember<ExecutionContext> execution_context_; 107 WeakMember<ExecutionContext> execution_context_;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // BaseFetchContext_h 112 #endif // BaseFetchContext_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/BaseFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698