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

Side by Side Diff: content/shell/browser/shell_devtools_frontend.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 16 matching lines...) Expand all
27 27
28 void Activate(); 28 void Activate();
29 void Focus(); 29 void Focus();
30 void InspectElementAt(int x, int y); 30 void InspectElementAt(int x, int y);
31 void Close(); 31 void Close();
32 32
33 Shell* frontend_shell() const { return frontend_shell_; } 33 Shell* frontend_shell() const { return frontend_shell_; }
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 ~ShellDevToolsFrontend() override;
38 38
39 private: 39 private:
40 // WebContentsObserver overrides 40 // WebContentsObserver overrides
41 virtual void RenderViewCreated(RenderViewHost* render_view_host) override; 41 void RenderViewCreated(RenderViewHost* render_view_host) override;
42 virtual void DocumentOnLoadCompletedInMainFrame() override; 42 void DocumentOnLoadCompletedInMainFrame() override;
43 virtual void WebContentsDestroyed() override; 43 void WebContentsDestroyed() override;
44 44
45 // content::DevToolsFrontendHost::Delegate implementation. 45 // content::DevToolsFrontendHost::Delegate implementation.
46 virtual void HandleMessageFromDevToolsFrontend( 46 void HandleMessageFromDevToolsFrontend(const std::string& message) override;
47 const std::string& message) override; 47 void HandleMessageFromDevToolsFrontendToBackend(
48 virtual void HandleMessageFromDevToolsFrontendToBackend(
49 const std::string& message) override; 48 const std::string& message) override;
50 49
51 // content::DevToolsAgentHostClient implementation. 50 // content::DevToolsAgentHostClient implementation.
52 virtual void DispatchProtocolMessage( 51 void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
53 DevToolsAgentHost* agent_host, const std::string& message) override; 52 const std::string& message) override;
54 virtual void AgentHostClosed( 53 void AgentHostClosed(DevToolsAgentHost* agent_host, bool replaced) override;
55 DevToolsAgentHost* agent_host, bool replaced) override;
56 54
57 Shell* frontend_shell_; 55 Shell* frontend_shell_;
58 scoped_refptr<DevToolsAgentHost> agent_host_; 56 scoped_refptr<DevToolsAgentHost> agent_host_;
59 scoped_ptr<DevToolsFrontendHost> frontend_host_; 57 scoped_ptr<DevToolsFrontendHost> frontend_host_;
60 58
61 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); 59 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend);
62 }; 60 };
63 61
64 } // namespace content 62 } // namespace content
65 63
66 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 64 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_delegate.cc ('k') | content/shell/browser/shell_download_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698