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

Side by Side Diff: Source/core/html/parser/PreloadRequest.h

Issue 1189403002: Fix Preloader Meta Accept-CH bug (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix broken tests Created 5 years, 6 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PreloadRequest_h 5 #ifndef PreloadRequest_h
6 #define PreloadRequest_h 6 #define PreloadRequest_h
7 7
8 #include "core/fetch/ClientHintsPreferences.h" 8 #include "core/fetch/ClientHintsPreferences.h"
9 #include "core/fetch/FetchRequest.h" 9 #include "core/fetch/FetchRequest.h"
10 #include "core/fetch/Resource.h" 10 #include "core/fetch/Resource.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 Resource::Type resourceType() const { return m_resourceType; } 40 Resource::Type resourceType() const { return m_resourceType; }
41 41
42 const String& resourceURL() const { return m_resourceURL; } 42 const String& resourceURL() const { return m_resourceURL; }
43 float resourceWidth() const { return m_resourceWidth.isSet ? m_resourceWidth .width : 0; } 43 float resourceWidth() const { return m_resourceWidth.isSet ? m_resourceWidth .width : 0; }
44 const KURL& baseURL() const { return m_baseURL; } 44 const KURL& baseURL() const { return m_baseURL; }
45 bool isPreconnect() const { return m_requestType == RequestTypePreconnect; } 45 bool isPreconnect() const { return m_requestType == RequestTypePreconnect; }
46 bool isCORS() const { return m_isCORSEnabled; } 46 bool isCORS() const { return m_isCORSEnabled; }
47 bool isAllowCredentials() const { return m_allowCredentials == AllowStoredCr edentials; } 47 bool isAllowCredentials() const { return m_allowCredentials == AllowStoredCr edentials; }
48 const ClientHintsPreferences& preferences() const { return m_clientHintsPref erences; }
48 49
49 private: 50 private:
50 PreloadRequest(const String& initiatorName, 51 PreloadRequest(const String& initiatorName,
51 const TextPosition& initiatorPosition, 52 const TextPosition& initiatorPosition,
52 const String& resourceURL, 53 const String& resourceURL,
53 const KURL& baseURL, 54 const KURL& baseURL,
54 Resource::Type resourceType, 55 Resource::Type resourceType,
55 const FetchRequest::ResourceWidth& resourceWidth, 56 const FetchRequest::ResourceWidth& resourceWidth,
56 const ClientHintsPreferences& clientHintsPreferences, 57 const ClientHintsPreferences& clientHintsPreferences,
57 RequestType requestType) 58 RequestType requestType)
(...skipping 27 matching lines...) Expand all
85 FetchRequest::ResourceWidth m_resourceWidth; 86 FetchRequest::ResourceWidth m_resourceWidth;
86 ClientHintsPreferences m_clientHintsPreferences; 87 ClientHintsPreferences m_clientHintsPreferences;
87 RequestType m_requestType; 88 RequestType m_requestType;
88 }; 89 };
89 90
90 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream; 91 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream;
91 92
92 } 93 }
93 94
94 #endif 95 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698