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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 extensions::FileBrowserPrivateFormatDeviceFunction>(); | 90 extensions::FileBrowserPrivateFormatDeviceFunction>(); |
91 | 91 |
92 // Miscellaneous functions. | 92 // Miscellaneous functions. |
93 registry->RegisterFunction< | 93 registry->RegisterFunction< |
94 extensions::FileBrowserPrivateLogoutUserFunction>(); | 94 extensions::FileBrowserPrivateLogoutUserFunction>(); |
95 registry->RegisterFunction< | 95 registry->RegisterFunction< |
96 extensions::FileBrowserPrivateGetPreferencesFunction>(); | 96 extensions::FileBrowserPrivateGetPreferencesFunction>(); |
97 registry->RegisterFunction< | 97 registry->RegisterFunction< |
98 extensions::FileBrowserPrivateSetPreferencesFunction>(); | 98 extensions::FileBrowserPrivateSetPreferencesFunction>(); |
99 registry->RegisterFunction< | 99 registry->RegisterFunction< |
| 100 extensions::FileBrowserPrivateInstallWebstoreItemFunction>(); |
| 101 registry->RegisterFunction< |
100 extensions::FileBrowserPrivateZipSelectionFunction>(); | 102 extensions::FileBrowserPrivateZipSelectionFunction>(); |
101 registry->RegisterFunction<extensions::FileBrowserPrivateZoomFunction>(); | 103 registry->RegisterFunction<extensions::FileBrowserPrivateZoomFunction>(); |
| 104 |
102 event_router_->ObserveFileSystemEvents(); | 105 event_router_->ObserveFileSystemEvents(); |
103 } | 106 } |
104 | 107 |
105 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { | 108 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { |
106 } | 109 } |
107 | 110 |
108 void FileBrowserPrivateAPI::Shutdown() { | 111 void FileBrowserPrivateAPI::Shutdown() { |
109 event_router_->Shutdown(); | 112 event_router_->Shutdown(); |
110 } | 113 } |
111 | 114 |
112 // static | 115 // static |
113 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | 116 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { |
114 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | 117 return FileBrowserPrivateAPIFactory::GetForProfile(profile); |
115 } | 118 } |
116 | 119 |
117 } // namespace file_manager | 120 } // namespace file_manager |
OLD | NEW |