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

Side by Side Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h

Issue 2551843002: Embedding-CSP: Adding `const` to method signatures. (Closed)
Patch Set: Rebasing 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CSPDirectiveList_h 5 #ifndef CSPDirectiveList_h
6 #define CSPDirectiveList_h 6 #define CSPDirectiveList_h
7 7
8 #include "core/fetch/Resource.h" 8 #include "core/fetch/Resource.h"
9 #include "core/frame/csp/ContentSecurityPolicy.h" 9 #include "core/frame/csp/ContentSecurityPolicy.h"
10 #include "core/frame/csp/MediaListDirective.h" 10 #include "core/frame/csp/MediaListDirective.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 bool checkAncestorsAndReportViolation(SourceListDirective*, 266 bool checkAncestorsAndReportViolation(SourceListDirective*,
267 LocalFrame*, 267 LocalFrame*,
268 const KURL&) const; 268 const KURL&) const;
269 bool checkRequestWithoutIntegrityAndReportViolation( 269 bool checkRequestWithoutIntegrityAndReportViolation(
270 WebURLRequest::RequestContext, 270 WebURLRequest::RequestContext,
271 const KURL&, 271 const KURL&,
272 ResourceRequest::RedirectStatus) const; 272 ResourceRequest::RedirectStatus) const;
273 273
274 bool denyIfEnforcingPolicy() const { return isReportOnly(); } 274 bool denyIfEnforcingPolicy() const { return isReportOnly(); }
275 275
276 // Tthis function returns a SourceListDirective of a given type 276 // This function returns a SourceListDirective of a given type
277 // or if it is not defined, the default SourceListDirective for that type. 277 // or if it is not defined, the default SourceListDirective for that type.
278 SourceListDirective* operativeDirective( 278 SourceListDirective* operativeDirective(
279 const ContentSecurityPolicy::DirectiveType&); 279 const ContentSecurityPolicy::DirectiveType&) const;
280 280
281 // This function aggregates from a vector of policies all operative 281 // This function aggregates from a vector of policies all operative
282 // SourceListDirectives of a given type into a vector. 282 // SourceListDirectives of a given type into a vector.
283 static SourceListDirectiveVector getSourceVector( 283 static SourceListDirectiveVector getSourceVector(
284 const ContentSecurityPolicy::DirectiveType&, 284 const ContentSecurityPolicy::DirectiveType&,
285 const CSPDirectiveListVector& policies); 285 const CSPDirectiveListVector& policies);
286 286
287 Member<ContentSecurityPolicy> m_policy; 287 Member<ContentSecurityPolicy> m_policy;
288 288
289 String m_header; 289 String m_header;
(...skipping 27 matching lines...) Expand all
317 uint8_t m_requireSRIFor; 317 uint8_t m_requireSRIFor;
318 318
319 Vector<String> m_reportEndpoints; 319 Vector<String> m_reportEndpoints;
320 320
321 String m_evalDisabledErrorMessage; 321 String m_evalDisabledErrorMessage;
322 }; 322 };
323 323
324 } // namespace blink 324 } // namespace blink
325 325
326 #endif 326 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698