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

Side by Side Diff: chromecast/browser/devtools/remote_debugging_server.h

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "components/prefs/pref_member.h" 13 #include "components/prefs/pref_member.h"
13 14
14 namespace devtools_http_handler { 15 namespace devtools_http_handler {
15 class DevToolsHttpHandler; 16 class DevToolsHttpHandler;
16 } 17 }
17 18
18 namespace chromecast { 19 namespace chromecast {
19 namespace shell { 20 namespace shell {
20 21
21 class CastDevToolsManagerDelegate; 22 class CastDevToolsManagerDelegate;
22 23
23 class RemoteDebuggingServer { 24 class RemoteDebuggingServer {
24 public: 25 public:
25 explicit RemoteDebuggingServer(bool start_immediately); 26 explicit RemoteDebuggingServer(bool start_immediately);
26 ~RemoteDebuggingServer(); 27 ~RemoteDebuggingServer();
27 28
28 private: 29 private:
29 // Called when pref_enabled_ is changed. 30 // Called when pref_enabled_ is changed.
30 void OnEnabledChanged(); 31 void OnEnabledChanged();
31 32
32 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; 33 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler>
34 devtools_http_handler_;
33 35
34 BooleanPrefMember pref_enabled_; 36 BooleanPrefMember pref_enabled_;
35 uint16_t port_; 37 uint16_t port_;
36 38
37 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); 39 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
38 }; 40 };
39 41
40 } // namespace shell 42 } // namespace shell
41 } // namespace chromecast 43 } // namespace chromecast
42 44
43 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 45 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_net_log.cc ('k') | chromecast/browser/devtools/remote_debugging_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698