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

Side by Side Diff: device/bluetooth/bluetooth_profile.cc

Issue 236203018: win: Implement Bluetooth server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « device/bluetooth/bluetooth_adapter_win.h ('k') | device/bluetooth/bluetooth_profile_win.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) 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 #include "device/bluetooth/bluetooth_profile.h" 5 #include "device/bluetooth/bluetooth_profile.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 #include "device/bluetooth/bluetooth_profile_chromeos.h" 8 #include "device/bluetooth/bluetooth_profile_chromeos.h"
9 #elif defined(OS_MACOSX) 9 #elif defined(OS_MACOSX)
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 chromeos::BluetoothProfileChromeOS* profile = NULL; 51 chromeos::BluetoothProfileChromeOS* profile = NULL;
52 profile = new chromeos::BluetoothProfileChromeOS(); 52 profile = new chromeos::BluetoothProfileChromeOS();
53 profile->Init(uuid, options, callback); 53 profile->Init(uuid, options, callback);
54 #elif defined(OS_MACOSX) 54 #elif defined(OS_MACOSX)
55 BluetoothProfile* profile = NULL; 55 BluetoothProfile* profile = NULL;
56 56
57 if (base::mac::IsOSLionOrLater()) 57 if (base::mac::IsOSLionOrLater())
58 profile = CreateBluetoothProfileMac(uuid, options); 58 profile = CreateBluetoothProfileMac(uuid, options);
59 callback.Run(profile); 59 callback.Run(profile);
60 #elif defined(OS_WIN) 60 #elif defined(OS_WIN)
61 BluetoothProfile* profile = NULL; 61 BluetoothProfileWin* profile = NULL;
62 profile = new BluetoothProfileWin(uuid, options.name); 62 profile = new BluetoothProfileWin();
63 callback.Run(profile); 63 profile->Init(uuid, options, callback);
64 #else 64 #else
65 callback.Run(NULL); 65 callback.Run(NULL);
66 #endif 66 #endif
67 } 67 }
68 68
69 } // namespace device 69 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.h ('k') | device/bluetooth/bluetooth_profile_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698