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

Side by Side Diff: content/browser/devtools/tethering_handler.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/browser/devtools/devtools_protocol.h" 12 #include "content/browser/devtools/devtools_protocol.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class DevToolsHttpHandlerDelegate; 16 class DevToolsHttpHandlerDelegate;
17 17
18 // This class implements reversed tethering handler. 18 // This class implements reversed tethering handler.
19 class TetheringHandler : public DevToolsProtocol::Handler { 19 class TetheringHandler : public DevToolsProtocol::Handler {
20 public: 20 public:
21 TetheringHandler(DevToolsHttpHandlerDelegate* delegate, 21 TetheringHandler(DevToolsHttpHandlerDelegate* delegate,
22 scoped_refptr<base::MessageLoopProxy> message_loop_proxy); 22 scoped_refptr<base::MessageLoopProxy> message_loop_proxy);
23 virtual ~TetheringHandler(); 23 ~TetheringHandler() override;
24 24
25 private: 25 private:
26 class TetheringImpl; 26 class TetheringImpl;
27 27
28 void Accepted(int port, const std::string& name); 28 void Accepted(int port, const std::string& name);
29 bool Activate(); 29 bool Activate();
30 30
31 scoped_refptr<DevToolsProtocol::Response> OnBind( 31 scoped_refptr<DevToolsProtocol::Response> OnBind(
32 scoped_refptr<DevToolsProtocol::Command> command); 32 scoped_refptr<DevToolsProtocol::Command> command);
33 scoped_refptr<DevToolsProtocol::Response> OnUnbind( 33 scoped_refptr<DevToolsProtocol::Response> OnUnbind(
(...skipping 10 matching lines...) Expand all
44 base::WeakPtrFactory<TetheringHandler> weak_factory_; 44 base::WeakPtrFactory<TetheringHandler> weak_factory_;
45 45
46 static TetheringImpl* impl_; 46 static TetheringImpl* impl_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); 48 DISALLOW_COPY_AND_ASSIGN(TetheringHandler);
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 52
53 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ 53 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/renderer_overrides_handler_browsertest.cc ('k') | content/browser/devtools/tethering_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698