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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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_TETHERING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TETHERING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TETHERING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TETHERING_HANDLER_H_
7 7
8 #include <stdint.h>
9
10 #include "base/macros.h"
8 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 12 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
10 13
11 namespace net { 14 namespace net {
12 class ServerSocket; 15 class ServerSocket;
13 } 16 }
14 17
15 namespace content { 18 namespace content {
16 namespace devtools { 19 namespace devtools {
17 namespace tethering { 20 namespace tethering {
(...skipping 10 matching lines...) Expand all
28 ~TetheringHandler(); 31 ~TetheringHandler();
29 32
30 void SetClient(scoped_ptr<Client> client); 33 void SetClient(scoped_ptr<Client> client);
31 34
32 Response Bind(DevToolsCommandId command_id, int port); 35 Response Bind(DevToolsCommandId command_id, int port);
33 Response Unbind(DevToolsCommandId command_id, int port); 36 Response Unbind(DevToolsCommandId command_id, int port);
34 37
35 private: 38 private:
36 class TetheringImpl; 39 class TetheringImpl;
37 40
38 void Accepted(uint16 port, const std::string& name); 41 void Accepted(uint16_t port, const std::string& name);
39 bool Activate(); 42 bool Activate();
40 43
41 void SendBindSuccess(DevToolsCommandId command_id); 44 void SendBindSuccess(DevToolsCommandId command_id);
42 void SendUnbindSuccess(DevToolsCommandId command_id); 45 void SendUnbindSuccess(DevToolsCommandId command_id);
43 void SendInternalError(DevToolsCommandId command_id, 46 void SendInternalError(DevToolsCommandId command_id,
44 const std::string& message); 47 const std::string& message);
45 48
46 scoped_ptr<Client> client_; 49 scoped_ptr<Client> client_;
47 CreateServerSocketCallback socket_callback_; 50 CreateServerSocketCallback socket_callback_;
48 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 51 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
49 bool is_active_; 52 bool is_active_;
50 base::WeakPtrFactory<TetheringHandler> weak_factory_; 53 base::WeakPtrFactory<TetheringHandler> weak_factory_;
51 54
52 static TetheringImpl* impl_; 55 static TetheringImpl* impl_;
53 56
54 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); 57 DISALLOW_COPY_AND_ASSIGN(TetheringHandler);
55 }; 58 };
56 59
57 } // namespace tethering 60 } // namespace tethering
58 } // namespace devtools 61 } // namespace devtools
59 } // namespace content 62 } // namespace content
60 63
61 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TETHERING_HANDLER_H_ 64 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TETHERING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/system_info_handler.cc ('k') | content/browser/devtools/protocol/tethering_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698