blob: 2682188e58e24915f953669f391e56b5d49256d1 [file] [log] [blame]
chenwilliamfed5bda2017-03-24 02:01:061// 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 CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_BINDINGS_H_
6#define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_BINDINGS_H_
7
8#include <memory>
Andrey Kosyakov942286d42018-03-22 02:12:389#include <set>
chenwilliamfed5bda2017-03-24 02:01:0610
11#include "base/compiler_specific.h"
Andrey Kosyakov942286d42018-03-22 02:12:3812#include "base/containers/unique_ptr_adapters.h"
chenwilliamfed5bda2017-03-24 02:01:0613#include "base/macros.h"
14#include "base/memory/ref_counted.h"
15#include "base/memory/weak_ptr.h"
16#include "base/values.h"
17#include "content/public/browser/devtools_agent_host.h"
18#include "content/public/browser/devtools_frontend_host.h"
19#include "content/public/browser/web_contents_observer.h"
20#include "net/url_request/url_fetcher_delegate.h"
21
22#if !defined(OS_ANDROID)
23#include "content/public/browser/devtools_frontend_host.h"
24#endif
25
26namespace base {
27class Value;
28}
29
30namespace content {
31
Pavel Feldmanad5aa4eb2017-06-13 21:13:5932class NavigationHandle;
33
chenwilliamfed5bda2017-03-24 02:01:0634class ShellDevToolsDelegate {
35 public:
36 virtual void Close() = 0;
37 virtual ~ShellDevToolsDelegate(){};
38};
39
40class WebContents;
41
42class ShellDevToolsBindings : public WebContentsObserver,
43 public DevToolsAgentHostClient,
44 public net::URLFetcherDelegate {
45 public:
46 ShellDevToolsBindings(WebContents* devtools_contents,
47 WebContents* inspected_contents,
48 ShellDevToolsDelegate* delegate);
49
50 void InspectElementAt(int x, int y);
Will Chen8bbdf20f2017-12-12 21:09:5451 virtual void Attach();
chenwilliamfed5bda2017-03-24 02:01:06