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

Side by Side Diff: content/browser/devtools/protocol/inspector_handler.h

Issue 1874893002: Convert //content/browser 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class RenderFrameHostImpl; 13 class RenderFrameHostImpl;
14 14
15 namespace devtools { 15 namespace devtools {
16 namespace inspector { 16 namespace inspector {
17 17
18 class InspectorHandler { 18 class InspectorHandler {
19 public: 19 public:
20 using Response = DevToolsProtocolClient::Response; 20 using Response = DevToolsProtocolClient::Response;
21 21
22 InspectorHandler(); 22 InspectorHandler();
23 virtual ~InspectorHandler(); 23 virtual ~InspectorHandler();
24 24
25 void SetClient(scoped_ptr<Client> client); 25 void SetClient(std::unique_ptr<Client> client);
26 void SetRenderFrameHost(RenderFrameHostImpl* host); 26 void SetRenderFrameHost(RenderFrameHostImpl* host);
27 27
28 void TargetCrashed(); 28 void TargetCrashed();
29 void TargetDetached(const std::string& reason); 29 void TargetDetached(const std::string& reason);
30 30
31 Response Enable(); 31 Response Enable();
32 Response Disable(); 32 Response Disable();
33 33
34 private: 34 private:
35 scoped_ptr<Client> client_; 35 std::unique_ptr<Client> client_;
36 RenderFrameHostImpl* host_; 36 RenderFrameHostImpl* host_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(InspectorHandler); 38 DISALLOW_COPY_AND_ASSIGN(InspectorHandler);
39 }; 39 };
40 40
41 } // namespace inspector 41 } // namespace inspector
42 } // namespace devtools 42 } // namespace devtools
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ 45 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/input_handler.cc ('k') | content/browser/devtools/protocol/inspector_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698