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

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

Issue 1851423003: Make Web Push use InstanceID tokens instead of GCM registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid4default
Patch Set: Fix GN/GYP Created 4 years, 8 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 const void* object) { 669 const void* object) {
670 PostNonNestableTask(from_here, Bind(releaser, object)); 670 PostNonNestableTask(from_here, Bind(releaser, object));
671 } 671 }
672 672
673 #if !defined(OS_NACL) 673 #if !defined(OS_NACL)
674 //------------------------------------------------------------------------------ 674 //------------------------------------------------------------------------------
675 // MessageLoopForUI 675 // MessageLoopForUI
676 676
677 MessageLoopForUI::MessageLoopForUI(scoped_ptr<MessagePump> pump) 677 MessageLoopForUI::MessageLoopForUI(scoped_ptr<MessagePump> pump)
678 : MessageLoop(TYPE_UI, Bind(&ReturnPump, Passed(&pump))) { 678 : MessageLoop(TYPE_UI, Bind(&ReturnPump, Passed(&pump))) {
679 BindToCurrentThread();
Peter Beverloo 2016/04/11 15:47:56 Stray change?
johnme 2016/04/21 10:58:37 No, but removed now I no longer use NestedMessageP
679 } 680 }
680 681
681 #if defined(OS_ANDROID) 682 #if defined(OS_ANDROID)
682 void MessageLoopForUI::Start() { 683 void MessageLoopForUI::Start() {
683 // No Histogram support for UI message loop as it is managed by Java side 684 // No Histogram support for UI message loop as it is managed by Java side
684 static_cast<MessagePumpForUI*>(pump_.get())->Start(this); 685 static_cast<MessagePumpForUI*>(pump_.get())->Start(this);
685 } 686 }
686 #endif 687 #endif
687 688
688 #if defined(OS_IOS) 689 #if defined(OS_IOS)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 persistent, 747 persistent,
747 mode, 748 mode,
748 controller, 749 controller,
749 delegate); 750 delegate);
750 } 751 }
751 #endif 752 #endif
752 753
753 #endif // !defined(OS_NACL_SFI) 754 #endif // !defined(OS_NACL_SFI)
754 755
755 } // namespace base 756 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | chrome/android/BUILD.gn » ('j') | chrome/browser/push_messaging/push_messaging_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698