OLD | NEW |
(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_ |
OLD | NEW |