Introduce the PlatformNotificationContext class.
[chromium-blink-merge.git] / content / shell / browser / layout_test / layout_test_devtools_frontend.h
blob20db64437b8effb7953d86c9c455ee3c25b2d035
1 // Copyright 2014 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.
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/shell/browser/shell_devtools_frontend.h"
12 namespace content {
14 class RenderViewHost;
15 class Shell;
16 class WebContents;
18 class LayoutTestDevToolsFrontend : public ShellDevToolsFrontend {
19 public:
20 static LayoutTestDevToolsFrontend* Show(WebContents* inspected_contents,
21 const std::string& settings,
22 const std::string& frontend_url);
24 static GURL GetDevToolsPathAsURL(const std::string& settings,
25 const std::string& frontend_url);
27 void ReuseFrontend(WebContents* inspected_contents,
28 const std::string& settings,
29 const std::string frontend_url);
31 private:
32 LayoutTestDevToolsFrontend(Shell* frontend_shell,
33 DevToolsAgentHost* agent_host);
34 ~LayoutTestDevToolsFrontend() override;
36 // content::DevToolsAgentHostClient implementation.
37 void AgentHostClosed(DevToolsAgentHost* agent_host, bool replaced) override;
39 // WebContentsObserver implementation.
40 void RenderProcessGone(base::TerminationStatus status) override;
42 DISALLOW_COPY_AND_ASSIGN(LayoutTestDevToolsFrontend);
45 } // namespace content
47 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_