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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/) 4 * (http://www.torchmobile.com/)
5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
6 * Copyright (C) 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2011 Google Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void dispatchDocumentElementAvailable(); 152 void dispatchDocumentElementAvailable();
153 void runScriptsAtDocumentElementAvailable(); 153 void runScriptsAtDocumentElementAvailable();
154 154
155 // The following sandbox flags will be forced, regardless of changes to the 155 // The following sandbox flags will be forced, regardless of changes to the
156 // sandbox attribute of any parent frames. 156 // sandbox attribute of any parent frames.
157 void forceSandboxFlags(SandboxFlags flags) { m_forcedSandboxFlags |= flags; } 157 void forceSandboxFlags(SandboxFlags flags) { m_forcedSandboxFlags |= flags; }
158 SandboxFlags effectiveSandboxFlags() const; 158 SandboxFlags effectiveSandboxFlags() const;
159 159
160 WebInsecureRequestPolicy getInsecureRequestPolicy() const; 160 WebInsecureRequestPolicy getInsecureRequestPolicy() const;
161 SecurityContext::InsecureNavigationsSet* insecureNavigationsToUpgrade() const; 161 SecurityContext::InsecureNavigationsSet* insecureNavigationsToUpgrade() const;
162 void modifyRequestForCSP(ResourceRequest&, Document*) const; 162 void modifyRequestForCSP(ResourceRequest&, Document* originDocument) const;
163 163
164 Frame* opener(); 164 Frame* opener();
165 void setOpener(LocalFrame*); 165 void setOpener(LocalFrame*);
166 166
167 const AtomicString& requiredCSP() const { return m_requiredCSP; } 167 const AtomicString& requiredCSP() const { return m_requiredCSP; }
168 void recordLatestRequiredCSP(); 168 void recordLatestRequiredCSP();
169 169
170 void detach(); 170 void detach();
171 171
172 void finishedParsing(); 172 void finishedParsing();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 PassRefPtr<SerializedScriptValue> stateObject, 247 PassRefPtr<SerializedScriptValue> stateObject,
248 FrameLoadType, 248 FrameLoadType,
249 HistoryLoadType, 249 HistoryLoadType,
250 ClientRedirectPolicy, 250 ClientRedirectPolicy,
251 Document*); 251 Document*);
252 252
253 void scheduleCheckCompleted(); 253 void scheduleCheckCompleted();
254 254
255 void detachDocumentLoader(Member<DocumentLoader>&); 255 void detachDocumentLoader(Member<DocumentLoader>&);
256 256
257 void upgradeInsecureRequest(ResourceRequest&, Document*) const; 257 void upgradeInsecureRequest(ResourceRequest&, Document* originDocument) const;
258 258
259 std::unique_ptr<TracedValue> toTracedValue() const; 259 std::unique_ptr<TracedValue> toTracedValue() const;
260 void takeObjectSnapshot() const; 260 void takeObjectSnapshot() const;
261 261
262 Member<LocalFrame> m_frame; 262 Member<LocalFrame> m_frame;
263 AtomicString m_requiredCSP; 263 AtomicString m_requiredCSP;
264 264
265 // FIXME: These should be std::unique_ptr<T> to reduce build times and 265 // FIXME: These should be std::unique_ptr<T> to reduce build times and
266 // simplify header dependencies unless performance testing proves otherwise. 266 // simplify header dependencies unless performance testing proves otherwise.
267 // Some of these could be lazily created for memory savings on devices. 267 // Some of these could be lazily created for memory savings on devices.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 SandboxFlags m_forcedSandboxFlags; 320 SandboxFlags m_forcedSandboxFlags;
321 321
322 bool m_dispatchingDidClearWindowObjectInMainWorld; 322 bool m_dispatchingDidClearWindowObjectInMainWorld;
323 bool m_protectProvisionalLoader; 323 bool m_protectProvisionalLoader;
324 bool m_isNavigationHandledByClient; 324 bool m_isNavigationHandledByClient;
325 }; 325 };
326 326
327 } // namespace blink 327 } // namespace blink
328 328
329 #endif // FrameLoader_h 329 #endif // FrameLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698