| OLD | NEW |
| 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 "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" | 7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" |
| 8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi_factory.h" | 8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi_factory.h" |
| 9 #include "chrome/browser/chromeos/extensions/file_manager/private_api_dialog.h" | 9 #include "chrome/browser/chromeos/extensions/file_manager/private_api_dialog.h" |
| 10 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h" | 10 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 registry->RegisterFunction<SetLastModifiedFunction>(); | 60 registry->RegisterFunction<SetLastModifiedFunction>(); |
| 61 registry->RegisterFunction<GetSizeStatsFunction>(); | 61 registry->RegisterFunction<GetSizeStatsFunction>(); |
| 62 registry->RegisterFunction<GetVolumeMetadataFunction>(); | 62 registry->RegisterFunction<GetVolumeMetadataFunction>(); |
| 63 registry->RegisterFunction<ValidatePathNameLengthFunction>(); | 63 registry->RegisterFunction<ValidatePathNameLengthFunction>(); |
| 64 registry->RegisterFunction<FormatDeviceFunction>(); | 64 registry->RegisterFunction<FormatDeviceFunction>(); |
| 65 | 65 |
| 66 // Miscellaneous functions. | 66 // Miscellaneous functions. |
| 67 registry->RegisterFunction<LogoutUserFunction>(); | 67 registry->RegisterFunction<LogoutUserFunction>(); |
| 68 registry->RegisterFunction<GetPreferencesFunction>(); | 68 registry->RegisterFunction<GetPreferencesFunction>(); |
| 69 registry->RegisterFunction<SetPreferencesFunction>(); | 69 registry->RegisterFunction<SetPreferencesFunction>(); |
| 70 registry->RegisterFunction<InstallWebstoreAppFunction>(); |
| 70 registry->RegisterFunction<ZipSelectionFunction>(); | 71 registry->RegisterFunction<ZipSelectionFunction>(); |
| 71 registry->RegisterFunction<ZoomFunction>(); | 72 registry->RegisterFunction<ZoomFunction>(); |
| 73 |
| 72 event_router_->ObserveFileSystemEvents(); | 74 event_router_->ObserveFileSystemEvents(); |
| 73 } | 75 } |
| 74 | 76 |
| 75 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { | 77 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { |
| 76 } | 78 } |
| 77 | 79 |
| 78 void FileBrowserPrivateAPI::Shutdown() { | 80 void FileBrowserPrivateAPI::Shutdown() { |
| 79 event_router_->Shutdown(); | 81 event_router_->Shutdown(); |
| 80 } | 82 } |
| 81 | 83 |
| 82 // static | 84 // static |
| 83 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | 85 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { |
| 84 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | 86 return FileBrowserPrivateAPIFactory::GetForProfile(profile); |
| 85 } | 87 } |
| 86 | 88 |
| 87 } // namespace file_manager | 89 } // namespace file_manager |
| OLD | NEW |