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

Side by Side Diff: Source/core/loader/DocumentThreadableLoader.h

Issue 666533005: DocumentThreadableLoader: Rename isAllowedByPolicy() to isAllowedByContentSecurityPolicy() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | Source/core/loader/DocumentThreadableLoader.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 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void loadActualRequest(); 98 void loadActualRequest();
99 // Clears m_actualRequest and reports access control check failure to 99 // Clears m_actualRequest and reports access control check failure to
100 // m_client. 100 // m_client.
101 void handlePreflightFailure(const String& url, const String& errorDescri ption); 101 void handlePreflightFailure(const String& url, const String& errorDescri ption);
102 // Investigates the response for the preflight request. If successful, 102 // Investigates the response for the preflight request. If successful,
103 // the actual request will be made later in handleSuccessfulFinish(). 103 // the actual request will be made later in handleSuccessfulFinish().
104 void handlePreflightResponse(const ResourceResponse&); 104 void handlePreflightResponse(const ResourceResponse&);
105 105
106 void loadRequest(const ResourceRequest&, ResourceLoaderOptions); 106 void loadRequest(const ResourceRequest&, ResourceLoaderOptions);
107 bool isAllowedRedirect(const KURL&) const; 107 bool isAllowedRedirect(const KURL&) const;
108 bool isAllowedByPolicy(const KURL&) const; 108 bool isAllowedByContentSecurityPolicy(const KURL&) const;
109 // Returns DoNotAllowStoredCredentials 109 // Returns DoNotAllowStoredCredentials
110 // if m_forceDoNotAllowStoredCredentials is set. Otherwise, just 110 // if m_forceDoNotAllowStoredCredentials is set. Otherwise, just
111 // returns allowCredentials value of m_resourceLoaderOptions. 111 // returns allowCredentials value of m_resourceLoaderOptions.
112 StoredCredentials effectiveAllowCredentials() const; 112 StoredCredentials effectiveAllowCredentials() const;
113 113
114 SecurityOrigin* securityOrigin() const; 114 SecurityOrigin* securityOrigin() const;
115 115
116 ThreadableLoaderClient* m_client; 116 ThreadableLoaderClient* m_client;
117 Document& m_document; 117 Document& m_document;
118 118
(...skipping 19 matching lines...) Expand all
138 OwnPtr<ResourceLoaderOptions> m_actualOptions; 138 OwnPtr<ResourceLoaderOptions> m_actualOptions;
139 139
140 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect. 140 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect.
141 Timer<DocumentThreadableLoader> m_timeoutTimer; 141 Timer<DocumentThreadableLoader> m_timeoutTimer;
142 double m_requestStartedSeconds; // Time an asynchronous fetch request is started 142 double m_requestStartedSeconds; // Time an asynchronous fetch request is started
143 }; 143 };
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // DocumentThreadableLoader_h 147 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698