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

Side by Side Diff: dbus/util.h

Issue 1032263002: Stop deleting ObjectProxy::OnPendingCallIsCompleteData manually (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « dbus/object_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DBUS_UTIL_H_ 5 #ifndef DBUS_UTIL_H_
6 #define DBUS_UTIL_H_ 6 #define DBUS_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "dbus/dbus_export.h" 10 #include "dbus/dbus_export.h"
11 11
12 namespace dbus { 12 namespace dbus {
13 13
14 // Returns the absolute name of a member by concatanating |interface_name| and 14 // Returns the absolute name of a member by concatanating |interface_name| and
15 // |member_name|. e.g.: 15 // |member_name|. e.g.:
16 // GetAbsoluteMemberName( 16 // GetAbsoluteMemberName(
17 // "org.freedesktop.DBus.Properties", 17 // "org.freedesktop.DBus.Properties",
18 // "PropertiesChanged") 18 // "PropertiesChanged")
19 // 19 //
20 // => "org.freedesktop.DBus.Properties.PropertiesChanged" 20 // => "org.freedesktop.DBus.Properties.PropertiesChanged"
21 // 21 //
22 CHROME_DBUS_EXPORT std::string GetAbsoluteMemberName( 22 CHROME_DBUS_EXPORT std::string GetAbsoluteMemberName(
23 const std::string& interface_name, 23 const std::string& interface_name,
24 const std::string& member_name); 24 const std::string& member_name);
25 25
26 // Similar to base::DeletePointer, but takes void* as an argument.
27 // Used as DBusFreeFunction.
28 template<typename T>
29 void DeleteVoidPointer(void* memory) {
30 delete static_cast<T*>(memory);
31 }
32
26 } // namespace dbus 33 } // namespace dbus
27 34
28 #endif // DBUS_UTIL_H_ 35 #endif // DBUS_UTIL_H_
OLDNEW
« no previous file with comments | « dbus/object_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698