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

Side by Side Diff: headless/public/util/navigation_request.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HEADLESS_PUBLIC_UTIL_NAVIGATION_REQUEST_H_
6 #define HEADLESS_PUBLIC_UTIL_NAVIGATION_REQUEST_H_
7
8 #include "base/macros.h"
9
10 namespace headless {
11
12 // While the actual details of the navigation processing are left undefined,
13 // it's anticipated implementations will use devtools Page.setControlNavigations
14 // and Page.processNavigation commands.
15 class NavigationRequest {
16 public:
17 NavigationRequest() {}
18 virtual ~NavigationRequest() {}
19
20 // Called on the IO thread to ask the implementation to start processing the
21 // navigation request. The NavigationRequest will be deleted immediately after
22 // The |done_callback| can be called from any thread.
23 virtual void StartProcessing(base::Closure done_callback) = 0;
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
27 };
28
29 } // namespace headless
30
31 #endif // HEADLESS_PUBLIC_UTIL_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « headless/public/util/expedited_dispatcher_test.cc ('k') | headless/public/util/url_request_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698