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

Side by Side Diff: dbus/object_proxy.cc

Issue 11280073: Allow multiple object proxies to handle NameOwnerChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | « no previous file | dbus/signal_sender_verification_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "dbus/bus.h" 5 #include "dbus/bus.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 if (!name_owner_changed_callback_.is_null()) { 654 if (!name_owner_changed_callback_.is_null()) {
655 const base::TimeTicks start_time = base::TimeTicks::Now(); 655 const base::TimeTicks start_time = base::TimeTicks::Now();
656 Signal* released_signal = signal.release(); 656 Signal* released_signal = signal.release();
657 bus_->PostTaskToOriginThread(FROM_HERE, 657 bus_->PostTaskToOriginThread(FROM_HERE,
658 base::Bind(&ObjectProxy::RunMethod, 658 base::Bind(&ObjectProxy::RunMethod,
659 this, 659 this,
660 start_time, 660 start_time,
661 name_owner_changed_callback_, 661 name_owner_changed_callback_,
662 released_signal)); 662 released_signal));
663 } 663 }
664 return DBUS_HANDLER_RESULT_HANDLED;
665 } 664 }
666 } 665 }
667 666
668 // Untrusted or uninteresting signal 667 // Always return unhandled to let other object proxies handle the same
668 // signal.
669 return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; 669 return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
670 } 670 }
671 671
672 } // namespace dbus 672 } // namespace dbus
OLDNEW
« no previous file with comments | « no previous file | dbus/signal_sender_verification_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698