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

Side by Side Diff: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Fix rebase compilation issues Created 3 years, 9 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) 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.h ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698