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

Side by Side Diff: content/common/message_port.h

Issue 2752243002: Small cleanup in content MessagePort watcher usage (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | content/common/message_port.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_COMMON_MESSAGE_PORT_H_ 5 #ifndef CONTENT_COMMON_MESSAGE_PORT_H_
6 #define CONTENT_COMMON_MESSAGE_PORT_H_ 6 #define CONTENT_COMMON_MESSAGE_PORT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 ~State(); 94 ~State();
95 95
96 void ArmWatcher(); 96 void ArmWatcher();
97 void OnHandleReady(MojoResult result); 97 void OnHandleReady(MojoResult result);
98 98
99 static void CallOnHandleReady(uintptr_t context, 99 static void CallOnHandleReady(uintptr_t context,
100 MojoResult result, 100 MojoResult result,
101 MojoHandleSignalsState signals_state, 101 MojoHandleSignalsState signals_state,
102 MojoWatcherNotificationFlags flags); 102 MojoWatcherNotificationFlags flags);
103
104 uintptr_t context_;
105 }; 103 };
106 mutable scoped_refptr<State> state_; 104 mutable scoped_refptr<State> state_;
107 }; 105 };
108 106
109 } // namespace content 107 } // namespace content
110 108
111 #endif // CONTENT_COMMON_MESSAGE_PORT_H_ 109 #endif // CONTENT_COMMON_MESSAGE_PORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/message_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698