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 class NavigationRequest { |
| 13 public: |
| 14 NavigationRequest() {} |
| 15 virtual ~NavigationRequest() {} |
| 16 |
| 17 // Called on the IO thread to ask the implementation to start processing the |
| 18 // navigation request. The NavigationRequest will be deleted immediately after |
| 19 // The |done_callback| can be called from any thread. |
| 20 virtual void StartProcessing(base::Closure done_callback) = 0; |
| 21 |
| 22 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 24 }; |
| 25 |
| 26 } // namespace headless |
| 27 |
| 28 #endif // HEADLESS_PUBLIC_UTIL_NAVIGATION_REQUEST_H_ |
OLD | NEW |