| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_DEVTOOLS_FRONTEND_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ |
| 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 ShellDevToolsFrontend(Shell* frontend_shell, DevToolsAgentHost* agent_host); | 36 ShellDevToolsFrontend(Shell* frontend_shell, DevToolsAgentHost* agent_host); |
| 37 virtual ~ShellDevToolsFrontend(); | 37 virtual ~ShellDevToolsFrontend(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // WebContentsObserver overrides | 40 // WebContentsObserver overrides |
| 41 virtual void RenderViewCreated(RenderViewHost* render_view_host) override; | 41 virtual void RenderViewCreated(RenderViewHost* render_view_host) override; |
| 42 virtual void DocumentOnLoadCompletedInMainFrame() override; | 42 virtual void DocumentOnLoadCompletedInMainFrame() override; |
| 43 virtual void WebContentsDestroyed() override; | 43 virtual void WebContentsDestroyed() override; |
| 44 virtual void RenderProcessGone(base::TerminationStatus status) override; | |
| 45 | 44 |
| 46 // content::DevToolsFrontendHost::Delegate implementation. | 45 // content::DevToolsFrontendHost::Delegate implementation. |
| 47 virtual void HandleMessageFromDevToolsFrontend( | 46 virtual void HandleMessageFromDevToolsFrontend( |
| 48 const std::string& message) override; | 47 const std::string& message) override; |
| 49 virtual void HandleMessageFromDevToolsFrontendToBackend( | 48 virtual void HandleMessageFromDevToolsFrontendToBackend( |
| 50 const std::string& message) override; | 49 const std::string& message) override; |
| 51 | 50 |
| 52 // content::DevToolsAgentHostClient implementation. | 51 // content::DevToolsAgentHostClient implementation. |
| 53 virtual void DispatchProtocolMessage( | 52 virtual void DispatchProtocolMessage( |
| 54 DevToolsAgentHost* agent_host, const std::string& message) override; | 53 DevToolsAgentHost* agent_host, const std::string& message) override; |
| 55 virtual void AgentHostClosed( | 54 virtual void AgentHostClosed( |
| 56 DevToolsAgentHost* agent_host, bool replaced) override; | 55 DevToolsAgentHost* agent_host, bool replaced) override; |
| 57 | 56 |
| 58 Shell* frontend_shell_; | 57 Shell* frontend_shell_; |
| 59 scoped_refptr<DevToolsAgentHost> agent_host_; | 58 scoped_refptr<DevToolsAgentHost> agent_host_; |
| 60 scoped_ptr<DevToolsFrontendHost> frontend_host_; | 59 scoped_ptr<DevToolsFrontendHost> frontend_host_; |
| 61 | 60 |
| 62 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); | 61 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace content | 64 } // namespace content |
| 66 | 65 |
| 67 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ | 66 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ |
| OLD | NEW |