| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_drive.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 file_system_context->CrackURL(url); | 512 file_system_context->CrackURL(url); |
| 513 switch (file_system_url.type()) { | 513 switch (file_system_url.type()) { |
| 514 case storage::kFileSystemTypeDrive: | 514 case storage::kFileSystemTypeDrive: |
| 515 SingleEntryPropertiesGetterForDrive::Start( | 515 SingleEntryPropertiesGetterForDrive::Start( |
| 516 file_system_url.path(), names_as_set, GetProfile(), | 516 file_system_url.path(), names_as_set, GetProfile(), |
| 517 base::Bind(&FileManagerPrivateGetEntryPropertiesFunction:: | 517 base::Bind(&FileManagerPrivateGetEntryPropertiesFunction:: |
| 518 CompleteGetEntryProperties, | 518 CompleteGetEntryProperties, |
| 519 this, i, file_system_url)); | 519 this, i, file_system_url)); |
| 520 break; | 520 break; |
| 521 case storage::kFileSystemTypeProvided: | 521 case storage::kFileSystemTypeProvided: |
| 522 case storage::kFileSystemTypePluginProvided: |
| 522 SingleEntryPropertiesGetterForFileSystemProvider::Start( | 523 SingleEntryPropertiesGetterForFileSystemProvider::Start( |
| 523 file_system_url, names_as_set, | 524 file_system_url, names_as_set, |
| 524 base::Bind(&FileManagerPrivateGetEntryPropertiesFunction:: | 525 base::Bind(&FileManagerPrivateGetEntryPropertiesFunction:: |
| 525 CompleteGetEntryProperties, | 526 CompleteGetEntryProperties, |
| 526 this, i, file_system_url)); | 527 this, i, file_system_url)); |
| 527 break; | 528 break; |
| 528 default: | 529 default: |
| 529 // TODO(yawano) Change this to support other voluems (e.g. local) ,and | 530 // TODO(yawano) Change this to support other voluems (e.g. local) ,and |
| 530 // integrate fileManagerPrivate.getMimeType to this method. | 531 // integrate fileManagerPrivate.getMimeType to this method. |
| 531 LOG(ERROR) << "Not supported file system type."; | 532 LOG(ERROR) << "Not supported file system type."; |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 } | 1078 } |
| 1078 | 1079 |
| 1079 const std::string url = | 1080 const std::string url = |
| 1080 download_url_.Resolve("?access_token=" + access_token).spec(); | 1081 download_url_.Resolve("?access_token=" + access_token).spec(); |
| 1081 SetResult(new base::StringValue(url)); | 1082 SetResult(new base::StringValue(url)); |
| 1082 | 1083 |
| 1083 SendResponse(true); | 1084 SendResponse(true); |
| 1084 } | 1085 } |
| 1085 | 1086 |
| 1086 } // namespace extensions | 1087 } // namespace extensions |
| OLD | NEW |