diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 19:57:38 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 19:57:38 +0000 |
commit | c83275bc64275a557a97b1cfda469c1227c6c503 (patch) | |
tree | d9278b77667fdeb1cf099eb1cf4c24cce16e6dca /base/message_pump_mac.h | |
parent | 2c02986320e4de786b306499b6f2c64751f54d04 (diff) | |
download | chromium_src-c83275bc64275a557a97b1cfda469c1227c6c503.zip chromium_src-c83275bc64275a557a97b1cfda469c1227c6c503.tar.gz chromium_src-c83275bc64275a557a97b1cfda469c1227c6c503.tar.bz2 |
When work shows up and no delegate is available to dispatch it to, arrange to
dispatch to the delegate when one becomes available.
BUG=16732
TEST=rm ~/Library/Preferences/com.google.Chrome.plist, launch official-branding
Google Chrome, dismiss first-run dialog. The application should be
usable.
Review URL: http://codereview.chromium.org/149687
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_mac.h')
-rw-r--r-- | base/message_pump_mac.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/message_pump_mac.h b/base/message_pump_mac.h index 73a28e0..f7e9a83 100644 --- a/base/message_pump_mac.h +++ b/base/message_pump_mac.h @@ -128,6 +128,15 @@ class MessagePumpCFRunLoopBase : public MessagePump { // (weak) Delegate passed as an argument to the innermost Run call. Delegate* delegate_; + // "Delegateless" work flags are set when work is ready to be performed but + // must wait until a delegate is available to process it. This can happen + // when a MessagePumpCFRunLoopBase is instantiated and work arrives without + // any call to Run on the stack. The Run method will check for delegateless + // work on entry and redispatch it as needed once a delegate is available. + bool delegateless_work_; + bool delegateless_delayed_work_; + bool delegateless_idle_work_; + DISALLOW_COPY_AND_ASSIGN(MessagePumpCFRunLoopBase); }; |