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

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

Issue 851123002: Manage profiles in BluetoothAdapter on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix profile memory leaks when adapter is gone Created 5 years, 10 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 | « chromeos/dbus/fake_bluetooth_profile_manager_client.cc ('k') | device/bluetooth/BUILD.gn » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 21 matching lines...) Expand all
32 virtual void NewConnection( 32 virtual void NewConnection(
33 const dbus::ObjectPath& device_path, 33 const dbus::ObjectPath& device_path,
34 scoped_ptr<dbus::FileDescriptor> fd, 34 scoped_ptr<dbus::FileDescriptor> fd,
35 const Delegate::Options& options, 35 const Delegate::Options& options,
36 const Delegate::ConfirmationCallback& callback); 36 const Delegate::ConfirmationCallback& callback);
37 virtual void RequestDisconnection( 37 virtual void RequestDisconnection(
38 const dbus::ObjectPath& device_path, 38 const dbus::ObjectPath& device_path,
39 const Delegate::ConfirmationCallback& callback); 39 const Delegate::ConfirmationCallback& callback);
40 virtual void Cancel(); 40 virtual void Cancel();
41 41
42 const dbus::ObjectPath& object_path() { return object_path_; }
43
42 private: 44 private:
43 friend class FakeBluetoothProfileManagerClient; 45 friend class FakeBluetoothProfileManagerClient;
44 46
45 // D-Bus object path we are faking. 47 // D-Bus object path we are faking.
46 dbus::ObjectPath object_path_; 48 dbus::ObjectPath object_path_;
47 49
48 // All incoming method calls are passed on to the Delegate and a callback 50 // All incoming method calls are passed on to the Delegate and a callback
49 // passed to generate the reply. |delegate_| is generally the object that 51 // passed to generate the reply. |delegate_| is generally the object that
50 // owns this one, and must outlive it. 52 // owns this one, and must outlive it.
51 Delegate* delegate_; 53 Delegate* delegate_;
52 }; 54 };
53 55
54 } // namespace chromeos 56 } // namespace chromeos
55 57
56 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 58 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_profile_manager_client.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698