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

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 use_glib is set to 0 on linux and chromeos 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(USE_X11) && !defined(USE_GLIB))
558 // Please see MessagePumpLibevent for definition. 558 // Please see MessagePumpLibevent for definition.
559 bool WatchFileDescriptor( 559 bool WatchFileDescriptor(
560 int fd, 560 int fd,
561 bool persistent, 561 bool persistent,
562 MessagePumpLibevent::Mode mode, 562 MessagePumpLibevent::Mode mode,
563 MessagePumpLibevent::FileDescriptorWatcher* controller, 563 MessagePumpLibevent::FileDescriptorWatcher* controller,
564 MessagePumpLibevent::Watcher* delegate); 564 MessagePumpLibevent::Watcher* delegate);
565 #endif 565 #endif
566 }; 566 };
567 567
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 // Do not add any member variables to MessageLoopForIO! This is important b/c 649 // Do not add any member variables to MessageLoopForIO! This is important b/c
650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra 650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra
651 // data that you need should be stored on the MessageLoop's pump_ instance. 651 // data that you need should be stored on the MessageLoop's pump_ instance.
652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), 652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO),
653 MessageLoopForIO_should_not_have_extra_member_variables); 653 MessageLoopForIO_should_not_have_extra_member_variables);
654 654
655 } // namespace base 655 } // namespace base
656 656
657 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 657 #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