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

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

Issue 2488743003: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Addressed comments (@alexmos #2) Created 3 years, 12 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) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 bool staleCopyInCache() const { return m_staleCopyInCache; } 112 bool staleCopyInCache() const { return m_staleCopyInCache; }
113 113
114 void setWasIgnoredByHandler(bool ignoredByHandler) { 114 void setWasIgnoredByHandler(bool ignoredByHandler) {
115 m_wasIgnoredByHandler = ignoredByHandler; 115 m_wasIgnoredByHandler = ignoredByHandler;
116 } 116 }
117 bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; } 117 bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; }
118 118
119 void setIsCacheMiss(bool isCacheMiss) { m_isCacheMiss = isCacheMiss; } 119 void setIsCacheMiss(bool isCacheMiss) { m_isCacheMiss = isCacheMiss; }
120 bool isCacheMiss() const { return m_isCacheMiss; } 120 bool isCacheMiss() const { return m_isCacheMiss; }
121 bool wasBlockedByResponse() const {
122 return m_errorCode == net::ERR_BLOCKED_BY_RESPONSE;
123 }
121 124
122 void setShouldCollapseInitiator(bool shouldCollapseInitiator) { 125 void setShouldCollapseInitiator(bool shouldCollapseInitiator) {
123 m_shouldCollapseInitiator = shouldCollapseInitiator; 126 m_shouldCollapseInitiator = shouldCollapseInitiator;
124 } 127 }
125 bool shouldCollapseInitiator() const { return m_shouldCollapseInitiator; } 128 bool shouldCollapseInitiator() const { return m_shouldCollapseInitiator; }
126 129
127 static bool compare(const ResourceError&, const ResourceError&); 130 static bool compare(const ResourceError&, const ResourceError&);
128 131
129 private: 132 private:
130 String m_domain; 133 String m_domain;
(...skipping 16 matching lines...) Expand all
147 inline bool operator!=(const ResourceError& a, const ResourceError& b) { 150 inline bool operator!=(const ResourceError& a, const ResourceError& b) {
148 return !(a == b); 151 return !(a == b);
149 } 152 }
150 153
151 // Pretty printer for gtest. Declared here to avoid ODR violations. 154 // Pretty printer for gtest. Declared here to avoid ODR violations.
152 std::ostream& operator<<(std::ostream&, const ResourceError&); 155 std::ostream& operator<<(std::ostream&, const ResourceError&);
153 156
154 } // namespace blink 157 } // namespace blink
155 158
156 #endif // ResourceError_h 159 #endif // ResourceError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698