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

Side by Side Diff: content/shell/browser/shell_devtools_delegate.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_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_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/public/browser/devtools_http_handler_delegate.h" 10 #include "content/public/browser/devtools_http_handler_delegate.h"
11 #include "content/public/browser/devtools_manager_delegate.h" 11 #include "content/public/browser/devtools_manager_delegate.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class BrowserContext; 15 class BrowserContext;
16 class DevToolsHttpHandler; 16 class DevToolsHttpHandler;
17 17
18 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { 18 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
19 public: 19 public:
20 explicit ShellDevToolsDelegate(BrowserContext* browser_context); 20 explicit ShellDevToolsDelegate(BrowserContext* browser_context);
21 virtual ~ShellDevToolsDelegate(); 21 ~ShellDevToolsDelegate() override;
22 22
23 // Stops http server. 23 // Stops http server.
24 void Stop(); 24 void Stop();
25 25
26 // DevToolsHttpHandlerDelegate implementation. 26 // DevToolsHttpHandlerDelegate implementation.
27 virtual std::string GetDiscoveryPageHTML() override; 27 std::string GetDiscoveryPageHTML() override;
28 virtual bool BundlesFrontendResources() override; 28 bool BundlesFrontendResources() override;
29 virtual base::FilePath GetDebugFrontendDir() override; 29 base::FilePath GetDebugFrontendDir() override;
30 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( 30 scoped_ptr<net::StreamListenSocket> CreateSocketForTethering(
31 net::StreamListenSocket::Delegate* delegate, 31 net::StreamListenSocket::Delegate* delegate,
32 std::string* name) override; 32 std::string* name) override;
33 33
34 DevToolsHttpHandler* devtools_http_handler() { 34 DevToolsHttpHandler* devtools_http_handler() {
35 return devtools_http_handler_; 35 return devtools_http_handler_;
36 } 36 }
37 37
38 private: 38 private:
39 BrowserContext* browser_context_; 39 BrowserContext* browser_context_;
40 DevToolsHttpHandler* devtools_http_handler_; 40 DevToolsHttpHandler* devtools_http_handler_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate); 42 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate);
43 }; 43 };
44 44
45 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate { 45 class ShellDevToolsManagerDelegate : public DevToolsManagerDelegate {
46 public: 46 public:
47 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context); 47 explicit ShellDevToolsManagerDelegate(BrowserContext* browser_context);
48 virtual ~ShellDevToolsManagerDelegate(); 48 ~ShellDevToolsManagerDelegate() override;
49 49
50 // DevToolsManagerDelegate implementation. 50 // DevToolsManagerDelegate implementation.
51 virtual void Inspect(BrowserContext* browser_context, 51 void Inspect(BrowserContext* browser_context,
52 DevToolsAgentHost* agent_host) override {} 52 DevToolsAgentHost* agent_host) override {}
53 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, 53 void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host,
54 bool attached) override {} 54 bool attached) override {}
55 virtual base::DictionaryValue* HandleCommand( 55 base::DictionaryValue* HandleCommand(DevToolsAgentHost* agent_host,
56 DevToolsAgentHost* agent_host, 56 base::DictionaryValue* command) override;
57 base::DictionaryValue* command) override; 57 scoped_ptr<DevToolsTarget> CreateNewTarget(const GURL& url) override;
58 virtual scoped_ptr<DevToolsTarget> CreateNewTarget(const GURL& url) override; 58 void EnumerateTargets(TargetCallback callback) override;
59 virtual void EnumerateTargets(TargetCallback callback) override; 59 std::string GetPageThumbnailData(const GURL& url) override;
60 virtual std::string GetPageThumbnailData(const GURL& url) override;
61 60
62 private: 61 private:
63 BrowserContext* browser_context_; 62 BrowserContext* browser_context_;
64 63
65 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate); 64 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate);
66 }; 65 };
67 66
68 } // namespace content 67 } // namespace content
69 68
70 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ 69 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | content/shell/browser/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698