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

Side by Side Diff: base/message_loop/message_loop.h

Issue 387623002: Fix the build when use_glib is set to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the build when use_glib is set to 0 Created 6 years, 5 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 | base/message_loop/message_loop.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 BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 #endif 547 #endif
548 548
549 #if defined(OS_WIN) 549 #if defined(OS_WIN)
550 typedef MessagePumpObserver Observer; 550 typedef MessagePumpObserver Observer;
551 551
552 // Please see message_pump_win for definitions of these methods. 552 // Please see message_pump_win for definitions of these methods.
553 void AddObserver(Observer* observer); 553 void AddObserver(Observer* observer);
554 void RemoveObserver(Observer* observer); 554 void RemoveObserver(Observer* observer);
555 #endif 555 #endif
556 556
557 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) 557 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) || \
558 (defined(OS_LINUX) && !defined(USE_GLIB))
zhaoze.zhou 2014/07/15 21:33:10 this function is needed x11_event_source_libevent.
sadrul 2014/07/15 21:34:41 Do you mean: USE_OZONE || (USE_X11 && !USE_GLIB
558 // Please see MessagePumpLibevent for definition. 559 // Please see MessagePumpLibevent for definition.
559 bool WatchFileDescriptor( 560 bool WatchFileDescriptor(
560 int fd, 561 int fd,
561 bool persistent, 562 bool persistent,
562 MessagePumpLibevent::Mode mode, 563 MessagePumpLibevent::Mode mode,
563 MessagePumpLibevent::FileDescriptorWatcher* controller, 564 MessagePumpLibevent::FileDescriptorWatcher* controller,
564 MessagePumpLibevent::Watcher* delegate); 565 MessagePumpLibevent::Watcher* delegate);
565 #endif 566 #endif
566 }; 567 };
567 568
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 649
649 // Do not add any member variables to MessageLoopForIO! This is important b/c 650 // Do not add any member variables to MessageLoopForIO! This is important b/c
650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra 651 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra
651 // data that you need should be stored on the MessageLoop's pump_ instance. 652 // data that you need should be stored on the MessageLoop's pump_ instance.
652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), 653 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO),
653 MessageLoopForIO_should_not_have_extra_member_variables); 654 MessageLoopForIO_should_not_have_extra_member_variables);
654 655
655 } // namespace base 656 } // namespace base
656 657
657 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 658 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | base/message_loop/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698