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

Unified Diff: headless/public/util/url_request_dispatcher.h

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/navigation_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/url_request_dispatcher.h
diff --git a/headless/public/util/url_request_dispatcher.h b/headless/public/util/url_request_dispatcher.h
index 1f34509a3a53ecbedd252eebe313680dd4871f4b..3029dd5c2b8021ca0749d538ba65dc40ea1f835f 100644
--- a/headless/public/util/url_request_dispatcher.h
+++ b/headless/public/util/url_request_dispatcher.h
@@ -10,6 +10,7 @@
namespace headless {
class ManagedDispatchURLRequestJob;
+class NavigationRequest;
// Interface to abstract and potentially reorder (for determinism) calls to
// ManagedDispatchUrlRequestJob::OnHeadersComplete and
@@ -36,6 +37,10 @@ class URLRequestDispatcher {
// Tells us the job has finished. Can be called from any thread.
virtual void JobDeleted(ManagedDispatchURLRequestJob* job) = 0;
+ // Tells us a navigation has been requested. Can be called from any thread.
+ virtual void NavigationRequested(
+ std::unique_ptr<NavigationRequest> navigation_request) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(URLRequestDispatcher);
};
« no previous file with comments | « headless/public/util/navigation_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698