Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Side by Side Diff: content/shell/browser/layout_test/layout_test_devtools_frontend.h

Issue 870883008: Test runner: make inspector tests reuse a single inspector process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_devtools_frontend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/shell/browser/shell_devtools_frontend.h" 10 #include "content/shell/browser/shell_devtools_frontend.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class RenderViewHost; 14 class RenderViewHost;
15 class Shell; 15 class Shell;
16 class WebContents; 16 class WebContents;
17 17
18 class LayoutTestDevToolsFrontend : public ShellDevToolsFrontend { 18 class LayoutTestDevToolsFrontend : public ShellDevToolsFrontend {
19 public: 19 public:
20 static LayoutTestDevToolsFrontend* Show(WebContents* inspected_contents, 20 static LayoutTestDevToolsFrontend* Show(WebContents* inspected_contents,
21 const std::string& settings, 21 const std::string& settings,
22 const std::string& frontend_url); 22 const std::string& frontend_url);
23 23
24 static GURL GetDevToolsPathAsURL(const std::string& settings, 24 static GURL GetDevToolsPathAsURL(const std::string& settings,
25 const std::string& frontend_url); 25 const std::string& frontend_url);
26 26
27 void ReuseFrontend(WebContents* inspected_contents,
28 const std::string& settings,
29 const std::string frontend_url);
30
27 private: 31 private:
28 LayoutTestDevToolsFrontend(Shell* frontend_shell, 32 LayoutTestDevToolsFrontend(Shell* frontend_shell,
29 DevToolsAgentHost* agent_host); 33 DevToolsAgentHost* agent_host);
30 ~LayoutTestDevToolsFrontend() override; 34 ~LayoutTestDevToolsFrontend() override;
31 35
36 // content::DevToolsAgentHostClient implementation.
37 void AgentHostClosed(DevToolsAgentHost* agent_host, bool replaced) override;
38
32 // WebContentsObserver implementation. 39 // WebContentsObserver implementation.
33 void RenderProcessGone(base::TerminationStatus status) override; 40 void RenderProcessGone(base::TerminationStatus status) override;
34 41
35 DISALLOW_COPY_AND_ASSIGN(LayoutTestDevToolsFrontend); 42 DISALLOW_COPY_AND_ASSIGN(LayoutTestDevToolsFrontend);
36 }; 43 };
37 44
38 } // namespace content 45 } // namespace content
39 46
40 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_ 47 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DEVTOOLS_FRONTEND_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698