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

Side by Side Diff: headless/public/util/expedited_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 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 #ifndef HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_ 5 #ifndef HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_
6 #define HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_ 6 #define HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 11 matching lines...) Expand all
22 explicit ExpeditedDispatcher( 22 explicit ExpeditedDispatcher(
23 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner); 23 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner);
24 ~ExpeditedDispatcher() override; 24 ~ExpeditedDispatcher() override;
25 25
26 // UrlRequestDispatcher implementation: 26 // UrlRequestDispatcher implementation:
27 void JobCreated(ManagedDispatchURLRequestJob* job) override; 27 void JobCreated(ManagedDispatchURLRequestJob* job) override;
28 void JobKilled(ManagedDispatchURLRequestJob* job) override; 28 void JobKilled(ManagedDispatchURLRequestJob* job) override;
29 void JobFailed(ManagedDispatchURLRequestJob* job, net::Error error) override; 29 void JobFailed(ManagedDispatchURLRequestJob* job, net::Error error) override;
30 void DataReady(ManagedDispatchURLRequestJob* job) override; 30 void DataReady(ManagedDispatchURLRequestJob* job) override;
31 void JobDeleted(ManagedDispatchURLRequestJob* job) override; 31 void JobDeleted(ManagedDispatchURLRequestJob* job) override;
32 void NavigationRequested(
33 std::unique_ptr<NavigationRequest> navigation_request) override;
32 34
33 private: 35 private:
34 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; 36 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
35 37
36 DISALLOW_COPY_AND_ASSIGN(ExpeditedDispatcher); 38 DISALLOW_COPY_AND_ASSIGN(ExpeditedDispatcher);
37 }; 39 };
38 40
39 } // namespace headless 41 } // namespace headless
40 42
41 #endif // HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_ 43 #endif // HEADLESS_PUBLIC_UTIL_EXPEDITED_DISPATCHER_H_
OLDNEW
« no previous file with comments | « headless/public/util/deterministic_dispatcher_test.cc ('k') | headless/public/util/expedited_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698