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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.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 /* 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Settings* GetSettings() const override; 172 Settings* GetSettings() const override;
173 SubresourceFilter* GetSubresourceFilter() const override; 173 SubresourceFilter* GetSubresourceFilter() const override;
174 SecurityContext* GetParentSecurityContext() const override; 174 SecurityContext* GetParentSecurityContext() const override;
175 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override; 175 bool ShouldBlockRequestByInspector(const ResourceRequest&) const override;
176 void DispatchDidBlockRequest(const ResourceRequest&, 176 void DispatchDidBlockRequest(const ResourceRequest&,
177 const FetchInitiatorInfo&, 177 const FetchInitiatorInfo&,
178 ResourceRequestBlockedReason) const override; 178 ResourceRequestBlockedReason) const override;
179 void ReportLocalLoadFailed(const KURL&) const override; 179 void ReportLocalLoadFailed(const KURL&) const override;
180 bool ShouldBypassMainWorldCSP() const override; 180 bool ShouldBypassMainWorldCSP() const override;
181 bool IsSVGImageChromeClient() const override; 181 bool IsSVGImageChromeClient() const override;
182 // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature in
183 // CountDeprecation() and CountUsage().
182 void CountUsage(UseCounter::Feature) const override; 184 void CountUsage(UseCounter::Feature) const override;
185 void CountUsage(WebFeature feature) const override {
186 return CountUsage(static_cast<UseCounter::Feature>(feature));
187 }
183 void CountDeprecation(UseCounter::Feature) const override; 188 void CountDeprecation(UseCounter::Feature) const override;
189 void CountDeprecation(WebFeature feature) const override {
190 return CountDeprecation(static_cast<UseCounter::Feature>(feature));
191 }
184 bool ShouldBlockFetchByMixedContentCheck( 192 bool ShouldBlockFetchByMixedContentCheck(
185 const ResourceRequest&, 193 const ResourceRequest&,
186 const KURL&, 194 const KURL&,
187 SecurityViolationReportingPolicy) const override; 195 SecurityViolationReportingPolicy) const override;
188 196
189 Member<DocumentLoader> document_loader_; 197 Member<DocumentLoader> document_loader_;
190 }; 198 };
191 199
192 } // namespace blink 200 } // namespace blink
193 201
194 #endif 202 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698