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

Side by Side Diff: runtime/bin/eventhandler_android.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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
« no previous file with comments | « runtime/bin/eventhandler.cc ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_BIN_EVENTHANDLER_ANDROID_H_ 5 #ifndef RUNTIME_BIN_EVENTHANDLER_ANDROID_H_
6 #define RUNTIME_BIN_EVENTHANDLER_ANDROID_H_ 6 #define RUNTIME_BIN_EVENTHANDLER_ANDROID_H_
7 7
8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_) 8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_android.h directly; 9 #error Do not include eventhandler_android.h directly;
10 #error use eventhandler.h instead. 10 #error use eventhandler.h instead.
(...skipping 20 matching lines...) Expand all
31 31
32 virtual void Close() { 32 virtual void Close() {
33 VOID_TEMP_FAILURE_RETRY(close(fd_)); 33 VOID_TEMP_FAILURE_RETRY(close(fd_));
34 fd_ = -1; 34 fd_ = -1;
35 } 35 }
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(DescriptorInfo); 38 DISALLOW_COPY_AND_ASSIGN(DescriptorInfo);
39 }; 39 };
40 40
41
42 class DescriptorInfoSingle : public DescriptorInfoSingleMixin<DescriptorInfo> { 41 class DescriptorInfoSingle : public DescriptorInfoSingleMixin<DescriptorInfo> {
43 public: 42 public:
44 explicit DescriptorInfoSingle(intptr_t fd) 43 explicit DescriptorInfoSingle(intptr_t fd)
45 : DescriptorInfoSingleMixin(fd, false) {} 44 : DescriptorInfoSingleMixin(fd, false) {}
46 virtual ~DescriptorInfoSingle() {} 45 virtual ~DescriptorInfoSingle() {}
47 46
48 private: 47 private:
49 DISALLOW_COPY_AND_ASSIGN(DescriptorInfoSingle); 48 DISALLOW_COPY_AND_ASSIGN(DescriptorInfoSingle);
50 }; 49 };
51 50
52
53 class DescriptorInfoMultiple 51 class DescriptorInfoMultiple
54 : public DescriptorInfoMultipleMixin<DescriptorInfo> { 52 : public DescriptorInfoMultipleMixin<DescriptorInfo> {
55 public: 53 public:
56 explicit DescriptorInfoMultiple(intptr_t fd) 54 explicit DescriptorInfoMultiple(intptr_t fd)
57 : DescriptorInfoMultipleMixin(fd, false) {} 55 : DescriptorInfoMultipleMixin(fd, false) {}
58 virtual ~DescriptorInfoMultiple() {} 56 virtual ~DescriptorInfoMultiple() {}
59 57
60 private: 58 private:
61 DISALLOW_COPY_AND_ASSIGN(DescriptorInfoMultiple); 59 DISALLOW_COPY_AND_ASSIGN(DescriptorInfoMultiple);
62 }; 60 };
63 61
64
65 class EventHandlerImplementation { 62 class EventHandlerImplementation {
66 public: 63 public:
67 EventHandlerImplementation(); 64 EventHandlerImplementation();
68 ~EventHandlerImplementation(); 65 ~EventHandlerImplementation();
69 66
70 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo* di); 67 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo* di);
71 68
72 // Gets the socket data structure for a given file 69 // Gets the socket data structure for a given file
73 // descriptor. Creates a new one if one is not found. 70 // descriptor. Creates a new one if one is not found.
74 DescriptorInfo* GetDescriptorInfo(intptr_t fd, bool is_listening); 71 DescriptorInfo* GetDescriptorInfo(intptr_t fd, bool is_listening);
(...skipping 19 matching lines...) Expand all
94 int interrupt_fds_[2]; 91 int interrupt_fds_[2];
95 int epoll_fd_; 92 int epoll_fd_;
96 93
97 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation); 94 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation);
98 }; 95 };
99 96
100 } // namespace bin 97 } // namespace bin
101 } // namespace dart 98 } // namespace dart
102 99
103 #endif // RUNTIME_BIN_EVENTHANDLER_ANDROID_H_ 100 #endif // RUNTIME_BIN_EVENTHANDLER_ANDROID_H_
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler.cc ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698