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 "chromeos/dbus/media_transfer_protocol_daemon_client.h" | 5 #include "chromeos/dbus/media_transfer_protocol_daemon_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 case FILE_TYPE_TIFF: | 538 case FILE_TYPE_TIFF: |
539 case FILE_TYPE_BMP: | 539 case FILE_TYPE_BMP: |
540 case FILE_TYPE_GIF: | 540 case FILE_TYPE_GIF: |
541 case FILE_TYPE_PICT: | 541 case FILE_TYPE_PICT: |
542 case FILE_TYPE_PNG: | 542 case FILE_TYPE_PNG: |
543 case FILE_TYPE_WINDOWSIMAGEFORMAT: | 543 case FILE_TYPE_WINDOWSIMAGEFORMAT: |
544 case FILE_TYPE_JP2: | 544 case FILE_TYPE_JP2: |
545 case FILE_TYPE_JPX: | 545 case FILE_TYPE_JPX: |
546 case FILE_TYPE_UNKNOWN: | 546 case FILE_TYPE_UNKNOWN: |
547 file_type_ = static_cast<FileType>(file_type); | 547 file_type_ = static_cast<FileType>(file_type); |
| 548 break; |
548 default: | 549 default: |
549 file_type_ = FILE_TYPE_OTHER; | 550 file_type_ = FILE_TYPE_OTHER; |
550 break; | 551 break; |
551 } | 552 } |
552 } | 553 } |
553 } | 554 } |
554 | 555 |
555 //////////////////////////////////////////////////////////////////////////////// | 556 //////////////////////////////////////////////////////////////////////////////// |
556 // MediaTransferProtocolDaemonClient | 557 // MediaTransferProtocolDaemonClient |
557 | 558 |
558 MediaTransferProtocolDaemonClient::MediaTransferProtocolDaemonClient() {} | 559 MediaTransferProtocolDaemonClient::MediaTransferProtocolDaemonClient() {} |
559 | 560 |
560 MediaTransferProtocolDaemonClient::~MediaTransferProtocolDaemonClient() {} | 561 MediaTransferProtocolDaemonClient::~MediaTransferProtocolDaemonClient() {} |
561 | 562 |
562 // static | 563 // static |
563 MediaTransferProtocolDaemonClient* | 564 MediaTransferProtocolDaemonClient* |
564 MediaTransferProtocolDaemonClient::Create(DBusClientImplementationType type, | 565 MediaTransferProtocolDaemonClient::Create(DBusClientImplementationType type, |
565 dbus::Bus* bus) { | 566 dbus::Bus* bus) { |
566 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 567 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
567 return new MediaTransferProtocolDaemonClientImpl(bus); | 568 return new MediaTransferProtocolDaemonClientImpl(bus); |
568 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 569 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
569 return new MediaTransferProtocolDaemonClientStubImpl(); | 570 return new MediaTransferProtocolDaemonClientStubImpl(); |
570 } | 571 } |
571 | 572 |
572 } // namespace chromeos | 573 } // namespace chromeos |
OLD | NEW |