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

Side by Side Diff: webkit/fileapi/file_system_context.cc

Issue 10993066: Add oem mount point to cros_mount_provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot one file Created 8 years, 2 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 (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 "webkit/fileapi/file_system_context.h" 5 #include "webkit/fileapi/file_system_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 FileSystemMountPointProvider* FileSystemContext::GetMountPointProvider( 117 FileSystemMountPointProvider* FileSystemContext::GetMountPointProvider(
118 FileSystemType type) const { 118 FileSystemType type) const {
119 switch (type) { 119 switch (type) {
120 case kFileSystemTypeTemporary: 120 case kFileSystemTypeTemporary:
121 case kFileSystemTypePersistent: 121 case kFileSystemTypePersistent:
122 case kFileSystemTypeSyncable: 122 case kFileSystemTypeSyncable:
123 return sandbox_provider_.get(); 123 return sandbox_provider_.get();
124 case kFileSystemTypeExternal: 124 case kFileSystemTypeExternal:
125 case kFileSystemTypeDrive: 125 case kFileSystemTypeDrive:
126 case kFileSystemTypeRestrictedNativeLocal:
126 return external_provider_.get(); 127 return external_provider_.get();
127 case kFileSystemTypeIsolated: 128 case kFileSystemTypeIsolated:
128 case kFileSystemTypeDragged: 129 case kFileSystemTypeDragged:
129 case kFileSystemTypeNativeMedia: 130 case kFileSystemTypeNativeMedia:
130 case kFileSystemTypeDeviceMedia: 131 case kFileSystemTypeDeviceMedia:
131 return isolated_provider_.get(); 132 return isolated_provider_.get();
132 case kFileSystemTypeNativeLocal: 133 case kFileSystemTypeNativeLocal:
133 #if defined(OS_CHROMEOS) 134 #if defined(OS_CHROMEOS)
134 return external_provider_.get(); 135 return external_provider_.get();
135 #else 136 #else
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 if (!task_runners_->io_task_runner()->RunsTasksOnCurrentThread() && 288 if (!task_runners_->io_task_runner()->RunsTasksOnCurrentThread() &&
288 task_runners_->io_task_runner()->DeleteSoon(FROM_HERE, this)) { 289 task_runners_->io_task_runner()->DeleteSoon(FROM_HERE, this)) {
289 return; 290 return;
290 } 291 }
291 STLDeleteContainerPairSecondPointers(provider_map_.begin(), 292 STLDeleteContainerPairSecondPointers(provider_map_.begin(),
292 provider_map_.end()); 293 provider_map_.end());
293 delete this; 294 delete this;
294 } 295 }
295 296
296 } // namespace fileapi 297 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698