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