| 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/file_browser_private_a
pi_factory.h" | 7 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi_factory.h" |
| 8 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou
ter.h" | 8 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou
ter.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 15 matching lines...) Expand all Loading... |
| 26 registry->RegisterFunction<ExecuteTaskFunction>(); | 26 registry->RegisterFunction<ExecuteTaskFunction>(); |
| 27 registry->RegisterFunction<GetFileTasksFunction>(); | 27 registry->RegisterFunction<GetFileTasksFunction>(); |
| 28 registry->RegisterFunction<SetDefaultTaskFunction>(); | 28 registry->RegisterFunction<SetDefaultTaskFunction>(); |
| 29 registry->RegisterFunction<ViewFilesFunction>(); | 29 registry->RegisterFunction<ViewFilesFunction>(); |
| 30 | 30 |
| 31 // Drive related functions. | 31 // Drive related functions. |
| 32 registry->RegisterFunction<GetDriveEntryPropertiesFunction>(); | 32 registry->RegisterFunction<GetDriveEntryPropertiesFunction>(); |
| 33 registry->RegisterFunction<PinDriveFileFunction>(); | 33 registry->RegisterFunction<PinDriveFileFunction>(); |
| 34 registry->RegisterFunction<GetDriveFilesFunction>(); | 34 registry->RegisterFunction<GetDriveFilesFunction>(); |
| 35 registry->RegisterFunction<CancelFileTransfersFunction>(); | 35 registry->RegisterFunction<CancelFileTransfersFunction>(); |
| 36 registry->RegisterFunction<TransferFileFunction>(); | |
| 37 registry->RegisterFunction<SearchDriveFunction>(); | 36 registry->RegisterFunction<SearchDriveFunction>(); |
| 38 registry->RegisterFunction<SearchDriveMetadataFunction>(); | 37 registry->RegisterFunction<SearchDriveMetadataFunction>(); |
| 39 registry->RegisterFunction<ClearDriveCacheFunction>(); | 38 registry->RegisterFunction<ClearDriveCacheFunction>(); |
| 40 registry->RegisterFunction<GetDriveConnectionStateFunction>(); | 39 registry->RegisterFunction<GetDriveConnectionStateFunction>(); |
| 41 registry->RegisterFunction<RequestAccessTokenFunction>(); | 40 registry->RegisterFunction<RequestAccessTokenFunction>(); |
| 42 registry->RegisterFunction<GetShareUrlFunction>(); | 41 registry->RegisterFunction<GetShareUrlFunction>(); |
| 43 | 42 |
| 44 // Select file dialog related functions. | 43 // Select file dialog related functions. |
| 45 registry->RegisterFunction<CancelFileDialogFunction>(); | 44 registry->RegisterFunction<CancelFileDialogFunction>(); |
| 46 registry->RegisterFunction<SelectFileFunction>(); | 45 registry->RegisterFunction<SelectFileFunction>(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void FileBrowserPrivateAPI::Shutdown() { | 78 void FileBrowserPrivateAPI::Shutdown() { |
| 80 event_router_->Shutdown(); | 79 event_router_->Shutdown(); |
| 81 } | 80 } |
| 82 | 81 |
| 83 // static | 82 // static |
| 84 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | 83 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { |
| 85 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | 84 return FileBrowserPrivateAPIFactory::GetForProfile(profile); |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // namespace file_manager | 87 } // namespace file_manager |
| OLD | NEW |