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

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

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
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 #include "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 #if defined(OS_WIN) 679 #if defined(OS_WIN)
680 void MessageLoopForUI::AddObserver(Observer* observer) { 680 void MessageLoopForUI::AddObserver(Observer* observer) {
681 static_cast<MessagePumpWin*>(pump_.get())->AddObserver(observer); 681 static_cast<MessagePumpWin*>(pump_.get())->AddObserver(observer);
682 } 682 }
683 683
684 void MessageLoopForUI::RemoveObserver(Observer* observer) { 684 void MessageLoopForUI::RemoveObserver(Observer* observer) {
685 static_cast<MessagePumpWin*>(pump_.get())->RemoveObserver(observer); 685 static_cast<MessagePumpWin*>(pump_.get())->RemoveObserver(observer);
686 } 686 }
687 #endif // defined(OS_WIN) 687 #endif // defined(OS_WIN)
688 688
689 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) 689 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) || \
690 (defined(OS_LINUX) && !defined(USE_GLIB))
690 bool MessageLoopForUI::WatchFileDescriptor( 691 bool MessageLoopForUI::WatchFileDescriptor(
691 int fd, 692 int fd,
692 bool persistent, 693 bool persistent,
693 MessagePumpLibevent::Mode mode, 694 MessagePumpLibevent::Mode mode,
694 MessagePumpLibevent::FileDescriptorWatcher *controller, 695 MessagePumpLibevent::FileDescriptorWatcher *controller,
695 MessagePumpLibevent::Watcher *delegate) { 696 MessagePumpLibevent::Watcher *delegate) {
696 return static_cast<MessagePumpLibevent*>(pump_.get())->WatchFileDescriptor( 697 return static_cast<MessagePumpLibevent*>(pump_.get())->WatchFileDescriptor(
697 fd, 698 fd,
698 persistent, 699 persistent,
699 mode, 700 mode,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 persistent, 742 persistent,
742 mode, 743 mode,
743 controller, 744 controller,
744 delegate); 745 delegate);
745 } 746 }
746 #endif 747 #endif
747 748
748 #endif // !defined(OS_NACL) 749 #endif // !defined(OS_NACL)
749 750
750 } // namespace base 751 } // namespace base
OLDNEW
« base/message_loop/message_loop.h ('K') | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698