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

Side by Side Diff: base/message_loop.cc

Issue 6676099: When we process the tickler message in our windows message pump, we should not dispatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « base/message_loop.h ('k') | base/message_pump_win.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #include <gdk/gdkx.h> 9 #include <gdk/gdkx.h>
10 #endif 10 #endif
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 MessageLoop::DestructionObserver::~DestructionObserver() { 116 MessageLoop::DestructionObserver::~DestructionObserver() {
117 } 117 }
118 118
119 //------------------------------------------------------------------------------ 119 //------------------------------------------------------------------------------
120 120
121 MessageLoop::MessageLoop(Type type) 121 MessageLoop::MessageLoop(Type type)
122 : type_(type), 122 : type_(type),
123 nestable_tasks_allowed_(true), 123 nestable_tasks_allowed_(true),
124 exception_restoration_(false), 124 exception_restoration_(false),
125 state_(NULL), 125 state_(NULL),
126 #ifdef OS_WIN
127 os_modal_loop_(false),
128 #endif // OS_WIN
126 next_sequence_num_(0) { 129 next_sequence_num_(0) {
127 DCHECK(!current()) << "should only have one message loop per thread"; 130 DCHECK(!current()) << "should only have one message loop per thread";
128 lazy_tls_ptr.Pointer()->Set(this); 131 lazy_tls_ptr.Pointer()->Set(this);
129 132
130 // TODO(rvargas): Get rid of the OS guards. 133 // TODO(rvargas): Get rid of the OS guards.
131 #if defined(OS_WIN) 134 #if defined(OS_WIN)
132 #define MESSAGE_PUMP_UI new base::MessagePumpForUI() 135 #define MESSAGE_PUMP_UI new base::MessagePumpForUI()
133 #define MESSAGE_PUMP_IO new base::MessagePumpForIO() 136 #define MESSAGE_PUMP_IO new base::MessagePumpForIO()
134 #elif defined(OS_MACOSX) 137 #elif defined(OS_MACOSX)
135 #define MESSAGE_PUMP_UI base::MessagePumpMac::Create() 138 #define MESSAGE_PUMP_UI base::MessagePumpMac::Create()
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 Watcher *delegate) { 716 Watcher *delegate) {
714 return pump_libevent()->WatchFileDescriptor( 717 return pump_libevent()->WatchFileDescriptor(
715 fd, 718 fd,
716 persistent, 719 persistent,
717 static_cast<base::MessagePumpLibevent::Mode>(mode), 720 static_cast<base::MessagePumpLibevent::Mode>(mode),
718 controller, 721 controller,
719 delegate); 722 delegate);
720 } 723 }
721 724
722 #endif 725 #endif
OLDNEW
« no previous file with comments | « base/message_loop.h ('k') | base/message_pump_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698