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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceError.cpp

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: handle case in RemoteFontFaceSource if cache-aware deactivated in startLoad(), rebase Created 4 years, 2 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 errorCopy.m_domain = m_domain.isolatedCopy(); 51 errorCopy.m_domain = m_domain.isolatedCopy();
52 errorCopy.m_errorCode = m_errorCode; 52 errorCopy.m_errorCode = m_errorCode;
53 errorCopy.m_failingURL = m_failingURL.isolatedCopy(); 53 errorCopy.m_failingURL = m_failingURL.isolatedCopy();
54 errorCopy.m_localizedDescription = m_localizedDescription.isolatedCopy(); 54 errorCopy.m_localizedDescription = m_localizedDescription.isolatedCopy();
55 errorCopy.m_isNull = m_isNull; 55 errorCopy.m_isNull = m_isNull;
56 errorCopy.m_isCancellation = m_isCancellation; 56 errorCopy.m_isCancellation = m_isCancellation;
57 errorCopy.m_isAccessCheck = m_isAccessCheck; 57 errorCopy.m_isAccessCheck = m_isAccessCheck;
58 errorCopy.m_isTimeout = m_isTimeout; 58 errorCopy.m_isTimeout = m_isTimeout;
59 errorCopy.m_staleCopyInCache = m_staleCopyInCache; 59 errorCopy.m_staleCopyInCache = m_staleCopyInCache;
60 errorCopy.m_wasIgnoredByHandler = m_wasIgnoredByHandler; 60 errorCopy.m_wasIgnoredByHandler = m_wasIgnoredByHandler;
61 errorCopy.m_isCacheMiss = m_isCacheMiss;
61 return errorCopy; 62 return errorCopy;
62 } 63 }
63 64
64 bool ResourceError::compare(const ResourceError& a, const ResourceError& b) { 65 bool ResourceError::compare(const ResourceError& a, const ResourceError& b) {
65 if (a.isNull() && b.isNull()) 66 if (a.isNull() && b.isNull())
66 return true; 67 return true;
67 68
68 if (a.isNull() || b.isNull()) 69 if (a.isNull() || b.isNull())
69 return false; 70 return false;
70 71
(...skipping 17 matching lines...) Expand all
88 89
89 if (a.isTimeout() != b.isTimeout()) 90 if (a.isTimeout() != b.isTimeout())
90 return false; 91 return false;
91 92
92 if (a.staleCopyInCache() != b.staleCopyInCache()) 93 if (a.staleCopyInCache() != b.staleCopyInCache())
93 return false; 94 return false;
94 95
95 if (a.wasIgnoredByHandler() != b.wasIgnoredByHandler()) 96 if (a.wasIgnoredByHandler() != b.wasIgnoredByHandler())
96 return false; 97 return false;
97 98
99 if (a.isCacheMiss() != b.isCacheMiss())
100 return false;
101
98 return true; 102 return true;
99 } 103 }
100 104
101 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698