diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 22:36:04 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 22:36:04 +0000 |
commit | e7af596810a247bcee52927d3e4c6a02d38e9459 (patch) | |
tree | 8b3d56e0d599daf88eaae67f0fac75781ba34768 /base/message_pump_glib.cc | |
parent | df9e8cd83f062e899b2952a6fa5a47b28cd8169b (diff) | |
download | chromium_src-e7af596810a247bcee52927d3e4c6a02d38e9459.zip chromium_src-e7af596810a247bcee52927d3e4c6a02d38e9459.tar.gz chromium_src-e7af596810a247bcee52927d3e4c6a02d38e9459.tar.bz2 |
FBTF: Move some inner classes out of their header files.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3005047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_glib.cc')
-rw-r--r-- | base/message_pump_glib.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/base/message_pump_glib.cc b/base/message_pump_glib.cc index f027fdc..e85a712 100644 --- a/base/message_pump_glib.cc +++ b/base/message_pump_glib.cc @@ -124,6 +124,22 @@ GSourceFuncs WorkSourceFuncs = { namespace base { +struct MessagePumpForUI::RunState { + Delegate* delegate; + Dispatcher* dispatcher; + + // Used to flag that the current Run() invocation should return ASAP. + bool should_quit; + + // Used to count how many Run() invocations are on the stack. + int run_depth; + + // This keeps the state of whether the pump got signaled that there was new + // work to be done. Since we eat the message on the wake up pipe as soon as + // we get it, we keep that state here to stay consistent. + bool has_work; +}; + MessagePumpForUI::MessagePumpForUI() : state_(NULL), context_(g_main_context_default()), |