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

Side by Side Diff: dbus/bus.cc

Issue 7824054: Add some histograms to the D-Bus library: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rate->ratio Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | dbus/exported_object.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // TODO(satorux): 5 // TODO(satorux):
6 // - Handle "disconnected" signal. 6 // - Handle "disconnected" signal.
7 // - Collect metrics (ex. # of method calls, method call time, etc.)
8 7
9 #include "dbus/bus.h" 8 #include "dbus/bus.h"
10 9
11 #include "base/bind.h" 10 #include "base/bind.h"
12 #include "base/logging.h" 11 #include "base/logging.h"
13 #include "base/message_loop.h" 12 #include "base/message_loop.h"
14 #include "base/stl_util.h" 13 #include "base/stl_util.h"
15 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
16 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
17 #include "base/time.h" 16 #include "base/time.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 } 722 }
724 723
725 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection, 724 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection,
726 DBusDispatchStatus status, 725 DBusDispatchStatus status,
727 void* data) { 726 void* data) {
728 Bus* self = static_cast<Bus*>(data); 727 Bus* self = static_cast<Bus*>(data);
729 return self->OnDispatchStatusChanged(connection, status); 728 return self->OnDispatchStatusChanged(connection, status);
730 } 729 }
731 730
732 } // namespace dbus 731 } // namespace dbus
OLDNEW
« no previous file with comments | « no previous file | dbus/exported_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698