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

Side by Side Diff: chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc

Issue 284183012: Bluetooth: remove Profile API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_socket_event_ dispatcher.h" 5 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_ dispatcher.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.h" 8 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_api_socket.h"
9 #include "chrome/common/extensions/api/bluetooth_socket.h" 9 #include "chrome/common/extensions/api/bluetooth_socket.h"
10 #include "device/bluetooth/bluetooth_device.h" 10 #include "device/bluetooth/bluetooth_device.h"
11 #include "device/bluetooth/bluetooth_socket.h" 11 #include "device/bluetooth/bluetooth_socket.h"
12 #include "extensions/browser/event_router.h" 12 #include "extensions/browser/event_router.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 15
16 namespace { 16 namespace {
17 17
18 namespace bluetooth_socket = extensions::api::bluetooth_socket; 18 namespace bluetooth_socket = extensions::api::bluetooth_socket;
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 if (!extensions::ExtensionsBrowserClient::Get()->IsValidContext(context)) 363 if (!extensions::ExtensionsBrowserClient::Get()->IsValidContext(context))
364 return; 364 return;
365 365
366 EventRouter* router = EventRouter::Get(context); 366 EventRouter* router = EventRouter::Get(context);
367 if (router) 367 if (router)
368 router->DispatchEventToExtension(extension_id, event.Pass()); 368 router->DispatchEventToExtension(extension_id, event.Pass());
369 } 369 }
370 370
371 } // namespace api 371 } // namespace api
372 } // namespace extensions 372 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698