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

Side by Side Diff: chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_ 5 #ifndef CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_
6 #define CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_ 6 #define CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
10 #include "ipc/ipc_channel_handle.h" 11 #include "ipc/ipc_channel_handle.h"
11 12
12 namespace apps { 13 namespace apps {
13 14
14 // A UnixDomainSocketAcceptor listens on a UNIX domain socket. When a 15 // A UnixDomainSocketAcceptor listens on a UNIX domain socket. When a
15 // client connects to the socket, it accept()s the connection and 16 // client connects to the socket, it accept()s the connection and
16 // passes the new FD to the delegate. The delegate is then responsible 17 // passes the new FD to the delegate. The delegate is then responsible
17 // for creating a new IPC::Channel for the FD. 18 // for creating a new IPC::Channel for the FD.
18 class UnixDomainSocketAcceptor : public base::MessageLoopForIO::Watcher { 19 class UnixDomainSocketAcceptor : public base::MessageLoopForIO::Watcher {
(...skipping 29 matching lines...) Expand all
48 base::FilePath path_; 49 base::FilePath path_;
49 Delegate* delegate_; 50 Delegate* delegate_;
50 int listen_fd_; 51 int listen_fd_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(UnixDomainSocketAcceptor); 53 DISALLOW_COPY_AND_ASSIGN(UnixDomainSocketAcceptor);
53 }; 54 };
54 55
55 } // namespace apps 56 } // namespace apps
56 57
57 #endif // CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_ 58 #endif // CHROME_BROWSER_APPS_APP_SHIM_UNIX_DOMAIN_SOCKET_ACCEPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698