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

Side by Side Diff: third_party/WebKit/Source/core/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: Not sure I like this. 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) 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 "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/fetch/CachePolicy.h" 35 #include "core/fetch/CachePolicy.h"
36 #include "core/fetch/FetchInitiatorInfo.h" 36 #include "core/fetch/FetchInitiatorInfo.h"
37 #include "core/fetch/FetchRequest.h" 37 #include "core/fetch/FetchRequest.h"
38 #include "core/fetch/Resource.h" 38 #include "core/fetch/Resource.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.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/Noncopyable.h" 43 #include "wtf/Noncopyable.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class KURL; 47 class KURL;
47 class MHTMLArchive; 48 class MHTMLArchive;
48 class ResourceError; 49 class ResourceError;
49 class ResourceResponse; 50 class ResourceResponse;
50 class ResourceTimingInfo; 51 class ResourceTimingInfo;
51 class WebTaskRunner; 52 class WebTaskRunner;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 164
164 virtual MHTMLArchive* archive() const { return nullptr; } 165 virtual MHTMLArchive* archive() const { return nullptr; }
165 166
166 virtual ResourceLoadPriority modifyPriorityForExperiments( 167 virtual ResourceLoadPriority modifyPriorityForExperiments(
167 ResourceLoadPriority priority) { 168 ResourceLoadPriority priority) {
168 return priority; 169 return priority;
169 } 170 }
170 171
171 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 172 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
172 173
174 virtual WebInsecureRequestPolicy getInsecureRequestPolicy() const {
175 return kLeaveInsecureRequestsAlone;
176 }
177
173 protected: 178 protected:
174 FetchContext() {} 179 FetchContext() {}
175 }; 180 };
176 181
177 } // namespace blink 182 } // namespace blink
178 183
179 #endif 184 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698