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

Side by Side Diff: chromeos/dbus/cashew_client.h

Issue 10024054: chromeos: Convert D-Bus client classes' callback arguments to const reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/bluetooth_property.h ('k') | chromeos/dbus/cashew_client.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 #ifndef CHROMEOS_DBUS_CASHEW_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_CASHEW_CLIENT_H_
6 #define CHROMEOS_DBUS_CASHEW_CLIENT_H_ 6 #define CHROMEOS_DBUS_CASHEW_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 DataPlansUpdateHandler; 37 DataPlansUpdateHandler;
38 38
39 virtual ~CashewClient(); 39 virtual ~CashewClient();
40 40
41 // Factory function, creates a new instance and returns ownership. 41 // Factory function, creates a new instance and returns ownership.
42 // For normal usage, access the singleton via DBusThreadManager::Get(). 42 // For normal usage, access the singleton via DBusThreadManager::Get().
43 static CashewClient* Create(DBusClientImplementationType type, 43 static CashewClient* Create(DBusClientImplementationType type,
44 dbus::Bus* bus); 44 dbus::Bus* bus);
45 45
46 // Sets DataPlansUpdate signal handler. 46 // Sets DataPlansUpdate signal handler.
47 virtual void SetDataPlansUpdateHandler(DataPlansUpdateHandler handler) = 0; 47 virtual void SetDataPlansUpdateHandler(
48 const DataPlansUpdateHandler& handler) = 0;
48 49
49 // Resets DataPlansUpdate signal handler. 50 // Resets DataPlansUpdate signal handler.
50 virtual void ResetDataPlansUpdateHandler() = 0; 51 virtual void ResetDataPlansUpdateHandler() = 0;
51 52
52 // Calls RequestDataPlansUpdate method. 53 // Calls RequestDataPlansUpdate method.
53 virtual void RequestDataPlansUpdate() = 0; 54 virtual void RequestDataPlansUpdate() = 0;
54 55
55 protected: 56 protected:
56 // Create() should be used instead. 57 // Create() should be used instead.
57 CashewClient(); 58 CashewClient();
58 59
59 private: 60 private:
60 DISALLOW_COPY_AND_ASSIGN(CashewClient); 61 DISALLOW_COPY_AND_ASSIGN(CashewClient);
61 }; 62 };
62 63
63 } // namespace chromeos 64 } // namespace chromeos
64 65
65 #endif // CHROMEOS_DBUS_CASHEW_CLIENT_H_ 66 #endif // CHROMEOS_DBUS_CASHEW_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_property.h ('k') | chromeos/dbus/cashew_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698