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

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

Issue 2940553003: Failure in reading Blob URL should results in network error
Patch Set: . Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void SetWasIgnoredByHandler(bool ignored_by_handler) { 117 void SetWasIgnoredByHandler(bool ignored_by_handler) {
118 was_ignored_by_handler_ = ignored_by_handler; 118 was_ignored_by_handler_ = ignored_by_handler;
119 } 119 }
120 bool WasIgnoredByHandler() const { return was_ignored_by_handler_; } 120 bool WasIgnoredByHandler() const { return was_ignored_by_handler_; }
121 121
122 void SetIsCacheMiss(bool is_cache_miss) { is_cache_miss_ = is_cache_miss; } 122 void SetIsCacheMiss(bool is_cache_miss) { is_cache_miss_ = is_cache_miss; }
123 bool IsCacheMiss() const { return is_cache_miss_; } 123 bool IsCacheMiss() const { return is_cache_miss_; }
124 bool WasBlockedByResponse() const { 124 bool WasBlockedByResponse() const {
125 return error_code_ == net::ERR_BLOCKED_BY_RESPONSE; 125 return error_code_ == net::ERR_BLOCKED_BY_RESPONSE;
126 } 126 }
127 bool IsFileNotFoundError() const {
128 return error_code_ == net::ERR_FILE_NOT_FOUND;
129 }
127 130
128 void SetShouldCollapseInitiator(bool should_collapse_initiator) { 131 void SetShouldCollapseInitiator(bool should_collapse_initiator) {
129 should_collapse_initiator_ = should_collapse_initiator; 132 should_collapse_initiator_ = should_collapse_initiator;
130 } 133 }
131 bool ShouldCollapseInitiator() const { return should_collapse_initiator_; } 134 bool ShouldCollapseInitiator() const { return should_collapse_initiator_; }
132 135
133 static bool Compare(const ResourceError&, const ResourceError&); 136 static bool Compare(const ResourceError&, const ResourceError&);
134 137
135 private: 138 private:
136 String domain_; 139 String domain_;
(...skipping 16 matching lines...) Expand all
153 inline bool operator!=(const ResourceError& a, const ResourceError& b) { 156 inline bool operator!=(const ResourceError& a, const ResourceError& b) {
154 return !(a == b); 157 return !(a == b);
155 } 158 }
156 159
157 // Pretty printer for gtest. Declared here to avoid ODR violations. 160 // Pretty printer for gtest. Declared here to avoid ODR violations.
158 std::ostream& operator<<(std::ostream&, const ResourceError&); 161 std::ostream& operator<<(std::ostream&, const ResourceError&);
159 162
160 } // namespace blink 163 } // namespace blink
161 164
162 #endif // ResourceError_h 165 #endif // ResourceError_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698