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

Side by Side Diff: mojo/common/message_pump_mojo.h

Issue 336313007: Mojo: Rename MOJO_WAIT_FLAG_... -> MOJO_HANDLE_SIGNAL_.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/common/message_pump_mojo.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 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 #ifndef MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ 5 #ifndef MOJO_COMMON_MESSAGE_PUMP_MOJO_H_
6 #define MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ 6 #define MOJO_COMMON_MESSAGE_PUMP_MOJO_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void ScheduleWork() OVERRIDE; 44 virtual void ScheduleWork() OVERRIDE;
45 virtual void ScheduleDelayedWork( 45 virtual void ScheduleDelayedWork(
46 const base::TimeTicks& delayed_work_time) OVERRIDE; 46 const base::TimeTicks& delayed_work_time) OVERRIDE;
47 47
48 private: 48 private:
49 struct RunState; 49 struct RunState;
50 struct WaitState; 50 struct WaitState;
51 51
52 // Contains the data needed to track a request to AddHandler(). 52 // Contains the data needed to track a request to AddHandler().
53 struct Handler { 53 struct Handler {
54 Handler() : handler(NULL), wait_signals(MOJO_WAIT_FLAG_NONE), id(0) {} 54 Handler() : handler(NULL), wait_signals(MOJO_HANDLE_SIGNAL_NONE), id(0) {}
55 55
56 MessagePumpMojoHandler* handler; 56 MessagePumpMojoHandler* handler;
57 MojoHandleSignals wait_signals; 57 MojoHandleSignals wait_signals;
58 base::TimeTicks deadline; 58 base::TimeTicks deadline;
59 // See description of |MessagePumpMojo::next_handler_id_| for details. 59 // See description of |MessagePumpMojo::next_handler_id_| for details.
60 int id; 60 int id;
61 }; 61 };
62 62
63 typedef std::map<Handle, Handler> HandleToHandler; 63 typedef std::map<Handle, Handler> HandleToHandler;
64 64
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // notify it. 98 // notify it.
99 int next_handler_id_; 99 int next_handler_id_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(MessagePumpMojo); 101 DISALLOW_COPY_AND_ASSIGN(MessagePumpMojo);
102 }; 102 };
103 103
104 } // namespace common 104 } // namespace common
105 } // namespace mojo 105 } // namespace mojo
106 106
107 #endif // MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ 107 #endif // MOJO_COMMON_MESSAGE_PUMP_MOJO_H_
OLDNEW
« no previous file with comments | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/common/message_pump_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698