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

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

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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/introspectable_client.cc ('k') | chromeos/dbus/modem_messaging_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_MODEM_MESSAGING_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MODEM_MESSAGING_CLIENT_H_
6 #define CHROMEOS_DBUS_MODEM_MESSAGING_CLIENT_H_ 6 #define CHROMEOS_DBUS_MODEM_MESSAGING_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 typedef base::Callback<void()> DeleteCallback; 29 typedef base::Callback<void()> DeleteCallback;
30 typedef base::Callback<void(const dbus::ObjectPath& message_path, 30 typedef base::Callback<void(const dbus::ObjectPath& message_path,
31 bool complete)> SmsReceivedHandler; 31 bool complete)> SmsReceivedHandler;
32 typedef base::Callback<void(const std::vector<dbus::ObjectPath>& paths)> 32 typedef base::Callback<void(const std::vector<dbus::ObjectPath>& paths)>
33 ListCallback; 33 ListCallback;
34 34
35 virtual ~ModemMessagingClient(); 35 virtual ~ModemMessagingClient();
36 36
37 // Factory function, creates a new instance and returns ownership. 37 // Factory function, creates a new instance and returns ownership.
38 // For normal usage, access the singleton via DBusThreadManager::Get(). 38 // For normal usage, access the singleton via DBusThreadManager::Get().
39 static ModemMessagingClient* Create(DBusClientImplementationType type); 39 static ModemMessagingClient* Create();
40 40
41 // Sets SmsReceived signal handler. 41 // Sets SmsReceived signal handler.
42 virtual void SetSmsReceivedHandler(const std::string& service_name, 42 virtual void SetSmsReceivedHandler(const std::string& service_name,
43 const dbus::ObjectPath& object_path, 43 const dbus::ObjectPath& object_path,
44 const SmsReceivedHandler& handler) = 0; 44 const SmsReceivedHandler& handler) = 0;
45 45
46 // Resets SmsReceived signal handler. 46 // Resets SmsReceived signal handler.
47 virtual void ResetSmsReceivedHandler(const std::string& service_name, 47 virtual void ResetSmsReceivedHandler(const std::string& service_name,
48 const dbus::ObjectPath& object_path) = 0; 48 const dbus::ObjectPath& object_path) = 0;
49 49
(...skipping 14 matching lines...) Expand all
64 // Create() should be used instead. 64 // Create() should be used instead.
65 ModemMessagingClient(); 65 ModemMessagingClient();
66 66
67 private: 67 private:
68 DISALLOW_COPY_AND_ASSIGN(ModemMessagingClient); 68 DISALLOW_COPY_AND_ASSIGN(ModemMessagingClient);
69 }; 69 };
70 70
71 } // namespace chromeos 71 } // namespace chromeos
72 72
73 #endif // CHROMEOS_DBUS_MODEM_MESSAGING_CLIENT_H_ 73 #endif // CHROMEOS_DBUS_MODEM_MESSAGING_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/introspectable_client.cc ('k') | chromeos/dbus/modem_messaging_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698