OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_function_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 376 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
377 RegisterFunction<GetVolumeMetadataFunction>(); | 377 RegisterFunction<GetVolumeMetadataFunction>(); |
378 RegisterFunction<RequestLocalFileSystemFunction>(); | 378 RegisterFunction<RequestLocalFileSystemFunction>(); |
379 RegisterFunction<AddFileWatchBrowserFunction>(); | 379 RegisterFunction<AddFileWatchBrowserFunction>(); |
380 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 380 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
381 RegisterFunction<SelectFileFunction>(); | 381 RegisterFunction<SelectFileFunction>(); |
382 RegisterFunction<SelectFilesFunction>(); | 382 RegisterFunction<SelectFilesFunction>(); |
383 RegisterFunction<AddMountFunction>(); | 383 RegisterFunction<AddMountFunction>(); |
384 RegisterFunction<RemoveMountFunction>(); | 384 RegisterFunction<RemoveMountFunction>(); |
385 RegisterFunction<GetMountPointsFunction>(); | 385 RegisterFunction<GetMountPointsFunction>(); |
| 386 RegisterFunction<GetSizeStatsFunction>(); |
386 RegisterFunction<FormatDeviceFunction>(); | 387 RegisterFunction<FormatDeviceFunction>(); |
387 RegisterFunction<ViewFilesFunction>(); | 388 RegisterFunction<ViewFilesFunction>(); |
388 | 389 |
389 // Mediaplayer | 390 // Mediaplayer |
390 RegisterFunction<PlayAtMediaplayerFunction>(); | 391 RegisterFunction<PlayAtMediaplayerFunction>(); |
391 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 392 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
392 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 393 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
393 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 394 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
394 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 395 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
395 | 396 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 return function; | 661 return function; |
661 } | 662 } |
662 | 663 |
663 // static | 664 // static |
664 void ExtensionFunctionDispatcher::SendAccessDenied( | 665 void ExtensionFunctionDispatcher::SendAccessDenied( |
665 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 666 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
666 ipc_sender->Send(new ExtensionMsg_Response( | 667 ipc_sender->Send(new ExtensionMsg_Response( |
667 routing_id, request_id, false, std::string(), | 668 routing_id, request_id, false, std::string(), |
668 "Access to extension API denied.")); | 669 "Access to extension API denied.")); |
669 } | 670 } |
OLD | NEW |