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

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

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Initial check in 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
72 virtual void ReportLocalLoadFailed(const KURL&) const = 0; 72 virtual void ReportLocalLoadFailed(const KURL&) const = 0;
73 virtual bool ShouldBypassMainWorldCSP() const = 0; 73 virtual bool ShouldBypassMainWorldCSP() const = 0;
74 virtual bool IsSVGImageChromeClient() const = 0; 74 virtual bool IsSVGImageChromeClient() const = 0;
75 // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature in
Rick Byers 2017/05/23 19:51:49 From a quick scan I think all the worker-related s
lunalu1 2017/05/24 20:56:33 Reverted.
76 // CountDeprecation() and CountUsage().
75 virtual void CountUsage(UseCounter::Feature) const = 0; 77 virtual void CountUsage(UseCounter::Feature) const = 0;
78 virtual void CountUsage(WebFeature) const = 0;
76 virtual void CountDeprecation(UseCounter::Feature) const = 0; 79 virtual void CountDeprecation(UseCounter::Feature) const = 0;
80 virtual void CountDeprecation(WebFeature) const = 0;
77 virtual bool ShouldBlockFetchByMixedContentCheck( 81 virtual bool ShouldBlockFetchByMixedContentCheck(
78 const ResourceRequest&, 82 const ResourceRequest&,
79 const KURL&, 83 const KURL&,
80 SecurityViolationReportingPolicy) const = 0; 84 SecurityViolationReportingPolicy) const = 0;
81 85
82 // Utility method that can be used to implement other methods. 86 // Utility method that can be used to implement other methods.
83 void PrintAccessDeniedMessage(const KURL&) const; 87 void PrintAccessDeniedMessage(const KURL&) const;
84 void AddCSPHeaderIfNecessary(Resource::Type, ResourceRequest&); 88 void AddCSPHeaderIfNecessary(Resource::Type, ResourceRequest&);
85 ResourceRequestBlockedReason CheckCSPForRequest( 89 ResourceRequestBlockedReason CheckCSPForRequest(
86 const ResourceRequest&, 90 const ResourceRequest&,
(...skipping 16 matching lines...) Expand all
103 107
104 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 108 // 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. 109 // currently leak because ComputedStyle and its data are not on the heap.
106 // See crbug.com/383860 for details. 110 // See crbug.com/383860 for details.
107 WeakMember<ExecutionContext> execution_context_; 111 WeakMember<ExecutionContext> execution_context_;
108 }; 112 };
109 113
110 } // namespace blink 114 } // namespace blink
111 115
112 #endif // BaseFetchContext_h 116 #endif // BaseFetchContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698