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/file_browser_private_a
pi_factory.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_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" |
11 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste
m.h" | 11 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste
m.h" |
12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" | 12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" |
13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_mount.h" | 13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_mount.h" |
14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" | 14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" |
15 #include "chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h" | 15 #include "chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h" |
16 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" | 16 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" |
17 #include "chrome/browser/extensions/extension_function_registry.h" | 17 #include "chrome/browser/extensions/extension_function_registry.h" |
18 | 18 |
19 namespace file_manager { | 19 namespace file_manager { |
20 | 20 |
21 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile) | 21 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile) |
22 : event_router_(new FileManagerEventRouter(profile)) { | 22 : event_router_(new EventRouter(profile)) { |
23 ExtensionFunctionRegistry* registry = | 23 ExtensionFunctionRegistry* registry = |
24 ExtensionFunctionRegistry::GetInstance(); | 24 ExtensionFunctionRegistry::GetInstance(); |
25 // Tasks related functions. | 25 // Tasks related functions. |
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>(); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void FileBrowserPrivateAPI::Shutdown() { | 79 void FileBrowserPrivateAPI::Shutdown() { |
80 event_router_->Shutdown(); | 80 event_router_->Shutdown(); |
81 } | 81 } |
82 | 82 |
83 // static | 83 // static |
84 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | 84 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { |
85 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | 85 return FileBrowserPrivateAPIFactory::GetForProfile(profile); |
86 } | 86 } |
87 | 87 |
88 } // namespace file_manager | 88 } // namespace file_manager |
OLD | NEW |