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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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
« no previous file with comments | « AUTHORS ('k') | chrome/browser/chromeos/extensions/file_manager/private_api_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/browser/chromeos/extensions/file_manager/private_api_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698