OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/file_system_provider/service.h" | 5 #include "chrome/browser/chromeos/file_system_provider/service.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/prefs/scoped_user_pref_update.h" | 9 #include "base/prefs/scoped_user_pref_update.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 11 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
12 #include "chrome/browser/chromeos/file_system_provider/observer.h" | 12 #include "chrome/browser/chromeos/file_system_provider/observer.h" |
13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.h" | 13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.h" |
14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
16 #include "chrome/browser/chromeos/file_system_provider/service_factory.h" | 16 #include "chrome/browser/chromeos/file_system_provider/service_factory.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "components/pref_registry/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
19 #include "extensions/browser/extension_registry.h" | 19 #include "extensions/browser/extension_registry.h" |
20 #include "extensions/browser/extension_system.h" | 20 #include "extensions/browser/extension_system.h" |
21 #include "webkit/browser/fileapi/external_mount_points.h" | 21 #include "storage/browser/fileapi/external_mount_points.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 namespace file_system_provider { | 24 namespace file_system_provider { |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Maximum number of file systems to be mounted in the same time, per profile. | 27 // Maximum number of file systems to be mounted in the same time, per profile. |
28 const size_t kMaxFileSystems = 16; | 28 const size_t kMaxFileSystems = 16; |
29 | 29 |
30 // Default factory for provided file systems. |profile| must not be NULL. | 30 // Default factory for provided file systems. |profile| must not be NULL. |
31 ProvidedFileSystemInterface* CreateProvidedFileSystem( | 31 ProvidedFileSystemInterface* CreateProvidedFileSystem( |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 << ", " << display_name << "."; | 425 << ", " << display_name << "."; |
426 // Since remounting of the file system failed, then remove it from | 426 // Since remounting of the file system failed, then remove it from |
427 // preferences to avoid remounting it over and over again with a failure. | 427 // preferences to avoid remounting it over and over again with a failure. |
428 ForgetFileSystem(extension_id, file_system_id); | 428 ForgetFileSystem(extension_id, file_system_id); |
429 } | 429 } |
430 } | 430 } |
431 } | 431 } |
432 | 432 |
433 } // namespace file_system_provider | 433 } // namespace file_system_provider |
434 } // namespace chromeos | 434 } // namespace chromeos |
OLD | NEW |