OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/media_transfer_protocol/media_transfer_protocol_manager.h" | 5 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
19 #include "base/sequenced_task_runner.h" | 20 #include "base/sequenced_task_runner.h" |
20 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
21 #include "base/threading/thread_checker.h" | 22 #include "base/threading/thread_checker.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
23 #include "dbus/bus.h" | 24 #include "dbus/bus.h" |
24 #include "device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
" | 25 #include "device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
" |
25 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" | 26 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" |
26 #include "device/media_transfer_protocol/mtp_storage_info.pb.h" | 27 #include "device/media_transfer_protocol/mtp_storage_info.pb.h" |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 DCHECK(!g_media_transfer_protocol_manager); | 712 DCHECK(!g_media_transfer_protocol_manager); |
712 | 713 |
713 g_media_transfer_protocol_manager = | 714 g_media_transfer_protocol_manager = |
714 new MediaTransferProtocolManagerImpl(task_runner); | 715 new MediaTransferProtocolManagerImpl(task_runner); |
715 VLOG(1) << "MediaTransferProtocolManager initialized"; | 716 VLOG(1) << "MediaTransferProtocolManager initialized"; |
716 | 717 |
717 return g_media_transfer_protocol_manager; | 718 return g_media_transfer_protocol_manager; |
718 } | 719 } |
719 | 720 |
720 } // namespace device | 721 } // namespace device |
OLD | NEW |