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

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

Issue 1391583002: Introduce "navigate" mode in Requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2003, 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 , m_shouldSetOpener(MaybeSetOpener) 106 , m_shouldSetOpener(MaybeSetOpener)
107 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten tSecurityPolicy) 107 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten tSecurityPolicy)
108 { 108 {
109 initializeFetchFlags(); 109 initializeFetchFlags();
110 if (originDocument) 110 if (originDocument)
111 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo cument->url())); 111 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo cument->url()));
112 } 112 }
113 void initializeFetchFlags() 113 void initializeFetchFlags()
114 { 114 {
115 // These flags are passed to a service worker which controls the page. 115 // These flags are passed to a service worker which controls the page.
116 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeSam eOrigin); 116 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeNav igate);
117 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential sModeInclude); 117 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential sModeInclude);
118 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM anual); 118 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM anual);
119 } 119 }
120 RefPtrWillBeMember<Document> m_originDocument; 120 RefPtrWillBeMember<Document> m_originDocument;
121 ResourceRequest m_resourceRequest; 121 ResourceRequest m_resourceRequest;
122 AtomicString m_frameName; 122 AtomicString m_frameName;
123 SubstituteData m_substituteData; 123 SubstituteData m_substituteData;
124 bool m_replacesCurrentItem; 124 bool m_replacesCurrentItem;
125 ClientRedirectPolicy m_clientRedirect; 125 ClientRedirectPolicy m_clientRedirect;
126 RefPtrWillBeMember<Event> m_triggeringEvent; 126 RefPtrWillBeMember<Event> m_triggeringEvent;
127 RefPtrWillBeMember<HTMLFormElement> m_form; 127 RefPtrWillBeMember<HTMLFormElement> m_form;
128 ShouldSendReferrer m_shouldSendReferrer; 128 ShouldSendReferrer m_shouldSendReferrer;
129 ShouldSetOpener m_shouldSetOpener; 129 ShouldSetOpener m_shouldSetOpener;
130 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy ; 130 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy ;
131 }; 131 };
132 132
133 } 133 }
134 134
135 #endif // FrameLoadRequest_h 135 #endif // FrameLoadRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698