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

Side by Side Diff: content/test/test_navigation_url_loader_delegate.cc

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/test_navigation_url_loader_delegate.h" 5 #include "content/test/test_navigation_url_loader_delegate.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/public/browser/navigation_data.h" 8 #include "content/public/browser/navigation_data.h"
9 #include "content/public/browser/stream_handle.h" 9 #include "content/public/browser/stream_handle.h"
10 #include "content/public/common/resource_response.h" 10 #include "content/public/common/resource_response.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 void TestNavigationURLLoaderDelegate::OnRequestStarted( 74 void TestNavigationURLLoaderDelegate::OnRequestStarted(
75 base::TimeTicks timestamp) { 75 base::TimeTicks timestamp) {
76 ASSERT_FALSE(timestamp.is_null()); 76 ASSERT_FALSE(timestamp.is_null());
77 ++on_request_handled_counter_; 77 ++on_request_handled_counter_;
78 if (request_started_) 78 if (request_started_)
79 request_started_->Quit(); 79 request_started_->Quit();
80 } 80 }
81 81
82 void TestNavigationURLLoaderDelegate::OnServiceWorkerEncountered() {}
83
82 } // namespace content 84 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698