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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/service.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
OLDNEW
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"
(...skipping 20 matching lines...) Expand all
31 31
32 // Maximum number of file systems to be mounted in the same time, per profile. 32 // Maximum number of file systems to be mounted in the same time, per profile.
33 const size_t kMaxFileSystems = 16; 33 const size_t kMaxFileSystems = 16;
34 34
35 // Default factory for provided file systems. |profile| must not be NULL. 35 // Default factory for provided file systems. |profile| must not be NULL.
36 ProvidedFileSystemInterface* CreateProvidedFileSystem( 36 ProvidedFileSystemInterface* CreateProvidedFileSystem(
37 Profile* profile, 37 Profile* profile,
38 const ProvidedFileSystemInfo& file_system_info) { 38 const ProvidedFileSystemInfo& file_system_info) {
39 DCHECK(profile); 39 DCHECK(profile);
40 return new ThrottledFileSystem( 40 return new ThrottledFileSystem(
41 make_scoped_ptr(new ProvidedFileSystem(profile, file_system_info))); 41 make_scoped_ptr(new ProvidedFileSystem<ExtensionDestination>(
42 profile, file_system_info)));
42 } 43 }
43 44
44 } // namespace 45 } // namespace
45 46
46 ProvidingExtensionInfo::ProvidingExtensionInfo() { 47 ProvidingExtensionInfo::ProvidingExtensionInfo() {
47 } 48 }
48 49
49 ProvidingExtensionInfo::~ProvidingExtensionInfo() { 50 ProvidingExtensionInfo::~ProvidingExtensionInfo() {
50 } 51 }
51 52
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 } 453 }
453 454
454 void Service::OnWatcherListChanged( 455 void Service::OnWatcherListChanged(
455 const ProvidedFileSystemInfo& file_system_info, 456 const ProvidedFileSystemInfo& file_system_info,
456 const Watchers& watchers) { 457 const Watchers& watchers) {
457 registry_->RememberFileSystem(file_system_info, watchers); 458 registry_->RememberFileSystem(file_system_info, watchers);
458 } 459 }
459 460
460 } // namespace file_system_provider 461 } // namespace file_system_provider
461 } // namespace chromeos 462 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698