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
32
33
34
35
36
37
38
39
40
41
42
43
content / web_test / browser / web_test_devtools_bindings.h [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_WEB_TEST_BROWSER_WEB_TEST_DEVTOOLS_BINDINGS_H_
#define CONTENT_WEB_TEST_BROWSER_WEB_TEST_DEVTOOLS_BINDINGS_H_
#include "content/shell/browser/shell_devtools_frontend.h"
namespace content {
class WebContents;
class WebTestDevToolsBindings : public ShellDevToolsBindings {
public:
static GURL MapTestURLIfNeeded(const GURL& test_url, bool* is_devtools_test);
WebTestDevToolsBindings(WebContents* devtools_contents,
WebContents* inspected_contents,
const GURL& frontend_url);
void Attach() override;
WebTestDevToolsBindings(const WebTestDevToolsBindings&) = delete;
WebTestDevToolsBindings& operator=(const WebTestDevToolsBindings&) = delete;
~WebTestDevToolsBindings() override;
private:
class SecondaryObserver;
// WebContentsObserver implementation.
void PrimaryMainDocumentElementAvailable() override;
void NavigateDevToolsFrontend();
GURL frontend_url_;
std::unique_ptr<SecondaryObserver> secondary_observer_;
};
} // namespace content
#endif // CONTENT_WEB_TEST_BROWSER_WEB_TEST_DEVTOOLS_BINDINGS_H_