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

Side by Side Diff: mojo/edk/system/raw_channel_win.cc

Issue 1154903003: "typedef Foo Bar" -> "using Bar = Foo" in //mojo/edk/.... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "mojo/edk/system/raw_channel.h" 5 #include "mojo/edk/system/raw_channel.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 22 matching lines...) Expand all
33 33
34 BOOL SetFileCompletionNotificationModes(HANDLE handle, UCHAR flags) { 34 BOOL SetFileCompletionNotificationModes(HANDLE handle, UCHAR flags) {
35 return set_file_completion_notification_modes_(handle, flags); 35 return set_file_completion_notification_modes_(handle, flags);
36 } 36 }
37 37
38 BOOL CancelIoEx(HANDLE handle, LPOVERLAPPED overlapped) { 38 BOOL CancelIoEx(HANDLE handle, LPOVERLAPPED overlapped) {
39 return cancel_io_ex_(handle, overlapped); 39 return cancel_io_ex_(handle, overlapped);
40 } 40 }
41 41
42 private: 42 private:
43 typedef BOOL(WINAPI* SetFileCompletionNotificationModesFunc)(HANDLE, UCHAR); 43 using SetFileCompletionNotificationModesFunc = BOOL(WINAPI*)(HANDLE, UCHAR);
44 typedef BOOL(WINAPI* CancelIoExFunc)(HANDLE, LPOVERLAPPED); 44 using CancelIoExFunc = BOOL(WINAPI*)(HANDLE, LPOVERLAPPED);
45 45
46 bool is_vista_or_higher_; 46 bool is_vista_or_higher_;
47 SetFileCompletionNotificationModesFunc 47 SetFileCompletionNotificationModesFunc
48 set_file_completion_notification_modes_; 48 set_file_completion_notification_modes_;
49 CancelIoExFunc cancel_io_ex_; 49 CancelIoExFunc cancel_io_ex_;
50 }; 50 };
51 51
52 VistaOrHigherFunctions::VistaOrHigherFunctions() 52 VistaOrHigherFunctions::VistaOrHigherFunctions()
53 : is_vista_or_higher_(base::win::GetVersion() >= base::win::VERSION_VISTA), 53 : is_vista_or_higher_(base::win::GetVersion() >= base::win::VERSION_VISTA),
54 set_file_completion_notification_modes_(nullptr), 54 set_file_completion_notification_modes_(nullptr),
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 616
617 // Static factory method declared in raw_channel.h. 617 // Static factory method declared in raw_channel.h.
618 // static 618 // static
619 scoped_ptr<RawChannel> RawChannel::Create( 619 scoped_ptr<RawChannel> RawChannel::Create(
620 embedder::ScopedPlatformHandle handle) { 620 embedder::ScopedPlatformHandle handle) {
621 return make_scoped_ptr(new RawChannelWin(handle.Pass())); 621 return make_scoped_ptr(new RawChannelWin(handle.Pass()));
622 } 622 }
623 623
624 } // namespace system 624 } // namespace system
625 } // namespace mojo 625 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698