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

Unified Diff: extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.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, 4 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
diff --git a/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc b/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
similarity index 96%
rename from chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
rename to extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
index e96d3fc2cc7b93dc5fc407b9f0d09e3eb8f22b56..51ca9b074e5721bd509d493d9043425d84dff354 100644
--- a/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
+++ b/extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
@@ -2,20 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
+#include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_api_socket.h"
-#include "chrome/common/extensions/api/bluetooth_socket.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_socket.h"
+#include "extensions/browser/api/bluetooth_socket/bluetooth_api_socket.h"
#include "extensions/browser/event_router.h"
+#include "extensions/common/api/bluetooth_socket.h"
#include "net/base/io_buffer.h"
-#include "net/base/net_errors.h"
namespace {
-namespace bluetooth_socket = extensions::api::bluetooth_socket;
+namespace bluetooth_socket = extensions::core_api::bluetooth_socket;
using extensions::BluetoothApiSocket;
int kDefaultBufferSize = 4096;
@@ -55,7 +53,7 @@ bluetooth_socket::AcceptError MapAcceptErrorReason(
} // namespace
namespace extensions {
-namespace api {
+namespace core_api {
using content::BrowserThread;
@@ -368,5 +366,5 @@ void BluetoothSocketEventDispatcher::DispatchEvent(
router->DispatchEventToExtension(extension_id, event.Pass());
}
-} // namespace api
+} // namespace core_api
} // namespace extensions
« no previous file with comments | « extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h ('k') | extensions/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698