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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Rebase. :( Created 3 years, 10 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 21 matching lines...) Expand all
32 #define FetchContext_h 32 #define FetchContext_h
33 33
34 #include "platform/PlatformExport.h" 34 #include "platform/PlatformExport.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/loader/fetch/CachePolicy.h" 36 #include "platform/loader/fetch/CachePolicy.h"
37 #include "platform/loader/fetch/FetchInitiatorInfo.h" 37 #include "platform/loader/fetch/FetchInitiatorInfo.h"
38 #include "platform/loader/fetch/FetchRequest.h" 38 #include "platform/loader/fetch/FetchRequest.h"
39 #include "platform/loader/fetch/Resource.h" 39 #include "platform/loader/fetch/Resource.h"
40 #include "platform/network/ResourceLoadPriority.h" 40 #include "platform/network/ResourceLoadPriority.h"
41 #include "platform/network/ResourceRequest.h" 41 #include "platform/network/ResourceRequest.h"
42 #include "public/platform/WebInsecureRequestPolicy.h"
42 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
43 #include "wtf/Noncopyable.h" 44 #include "wtf/Noncopyable.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class ClientHintsPreferences; 48 class ClientHintsPreferences;
48 class KURL; 49 class KURL;
49 class MHTMLArchive; 50 class MHTMLArchive;
50 class ResourceError; 51 class ResourceError;
51 class ResourceResponse; 52 class ResourceResponse;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 181
181 virtual MHTMLArchive* archive() const { return nullptr; } 182 virtual MHTMLArchive* archive() const { return nullptr; }
182 183
183 virtual ResourceLoadPriority modifyPriorityForExperiments( 184 virtual ResourceLoadPriority modifyPriorityForExperiments(
184 ResourceLoadPriority priority) { 185 ResourceLoadPriority priority) {
185 return priority; 186 return priority;
186 } 187 }
187 188
188 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; } 189 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; }
189 190
191 virtual WebInsecureRequestPolicy getInsecureRequestPolicy() const {
192 return kLeaveInsecureRequestsAlone;
193 }
194
190 protected: 195 protected:
191 FetchContext() {} 196 FetchContext() {}
192 }; 197 };
193 198
194 } // namespace blink 199 } // namespace blink
195 200
196 #endif 201 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698