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

Unified Diff: headless/public/util/expedited_dispatcher.cc

Issue 2687083002: Headless: make URLRequestDispatcher aware of navigations (Closed)
Patch Set: Address nits Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/public/util/expedited_dispatcher.h ('k') | headless/public/util/expedited_dispatcher_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/expedited_dispatcher.cc
diff --git a/headless/public/util/expedited_dispatcher.cc b/headless/public/util/expedited_dispatcher.cc
index 0120442dd0ec4ac04aeecc969faf1d4e55b11bdc..649321a7ad04c318edf80cd1538b33f27d398c54 100644
--- a/headless/public/util/expedited_dispatcher.cc
+++ b/headless/public/util/expedited_dispatcher.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "headless/public/util/managed_dispatch_url_request_job.h"
+#include "headless/public/util/navigation_request.h"
namespace headless {
@@ -36,4 +37,13 @@ void ExpeditedDispatcher::DataReady(ManagedDispatchURLRequestJob* job) {
void ExpeditedDispatcher::JobDeleted(ManagedDispatchURLRequestJob*) {}
+void ExpeditedDispatcher::NavigationRequested(
+ std::unique_ptr<NavigationRequest> navigation) {
+ // For the ExpeditedDispatcher we don't care when the navigation is done,
+ // hence the empty closure.
+ io_thread_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&NavigationRequest::StartProcessing,
+ std::move(navigation), base::Closure()));
+}
+
} // namespace headless
« no previous file with comments | « headless/public/util/expedited_dispatcher.h ('k') | headless/public/util/expedited_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698