OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void WebDataSourceImpl::setServiceWorkerNetworkProvider( | 165 void WebDataSourceImpl::setServiceWorkerNetworkProvider( |
166 std::unique_ptr<WebServiceWorkerNetworkProvider> provider) { | 166 std::unique_ptr<WebServiceWorkerNetworkProvider> provider) { |
167 DocumentLoader::setServiceWorkerNetworkProvider(std::move(provider)); | 167 DocumentLoader::setServiceWorkerNetworkProvider(std::move(provider)); |
168 } | 168 } |
169 | 169 |
170 WebServiceWorkerNetworkProvider* | 170 WebServiceWorkerNetworkProvider* |
171 WebDataSourceImpl::getServiceWorkerNetworkProvider() { | 171 WebDataSourceImpl::getServiceWorkerNetworkProvider() { |
172 return DocumentLoader::getServiceWorkerNetworkProvider(); | 172 return DocumentLoader::getServiceWorkerNetworkProvider(); |
173 } | 173 } |
174 | 174 |
| 175 void WebDataSourceImpl::setSourceLocation( |
| 176 const WebSourceLocation& sourceLocation) { |
| 177 std::unique_ptr<SourceLocation> location = |
| 178 SourceLocation::create(sourceLocation.url, sourceLocation.lineNumber, |
| 179 sourceLocation.columnNumber, nullptr); |
| 180 DocumentLoader::setSourceLocation(std::move(location)); |
| 181 } |
| 182 |
| 183 void WebDataSourceImpl::resetSourceLocation() { |
| 184 DocumentLoader::setSourceLocation(nullptr); |
| 185 } |
| 186 |
175 DEFINE_TRACE(WebDataSourceImpl) { | 187 DEFINE_TRACE(WebDataSourceImpl) { |
176 DocumentLoader::trace(visitor); | 188 DocumentLoader::trace(visitor); |
177 } | 189 } |
178 | 190 |
179 } // namespace blink | 191 } // namespace blink |
OLD | NEW |