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

Side by Side Diff: extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 3 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
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 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_api_socket.h" 5 #include "extensions/browser/api/bluetooth_socket/bluetooth_api_socket.h"
6 6
7 #include "device/bluetooth/bluetooth_socket.h" 7 #include "device/bluetooth/bluetooth_socket.h"
8 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
9 9
10 namespace { 10 namespace {
11 11
12 const char kSocketNotConnectedError[] = "Socket not connected"; 12 const char kSocketNotConnectedError[] = "Socket not connected";
13 const char kSocketNotListeningError[] = "Socket not listening"; 13 const char kSocketNotListeningError[] = "Socket not listening";
14 14
15 } // namespace 15 } // namespace
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 // static 189 // static
190 void BluetoothApiSocket::OnSocketAcceptError( 190 void BluetoothApiSocket::OnSocketAcceptError(
191 const ErrorCompletionCallback& error_callback, 191 const ErrorCompletionCallback& error_callback,
192 const std::string& message) { 192 const std::string& message) {
193 DCHECK(content::BrowserThread::CurrentlyOn(kThreadId)); 193 DCHECK(content::BrowserThread::CurrentlyOn(kThreadId));
194 error_callback.Run(BluetoothApiSocket::kSystemError, message); 194 error_callback.Run(BluetoothApiSocket::kSystemError, message);
195 } 195 }
196 196
197 } // namespace extensions 197 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698