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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 372 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
373 RegisterFunction<GetVolumeMetadataFunction>(); | 373 RegisterFunction<GetVolumeMetadataFunction>(); |
374 RegisterFunction<RequestLocalFileSystemFunction>(); | 374 RegisterFunction<RequestLocalFileSystemFunction>(); |
375 RegisterFunction<AddFileWatchBrowserFunction>(); | 375 RegisterFunction<AddFileWatchBrowserFunction>(); |
376 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 376 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
377 RegisterFunction<SelectFileFunction>(); | 377 RegisterFunction<SelectFileFunction>(); |
378 RegisterFunction<SelectFilesFunction>(); | 378 RegisterFunction<SelectFilesFunction>(); |
379 RegisterFunction<AddMountFunction>(); | 379 RegisterFunction<AddMountFunction>(); |
380 RegisterFunction<RemoveMountFunction>(); | 380 RegisterFunction<RemoveMountFunction>(); |
381 RegisterFunction<GetMountPointsFunction>(); | 381 RegisterFunction<GetMountPointsFunction>(); |
| 382 RegisterFunction<GetSizeStatsFunction>(); |
382 RegisterFunction<FormatDeviceFunction>(); | 383 RegisterFunction<FormatDeviceFunction>(); |
383 RegisterFunction<ViewFilesFunction>(); | 384 RegisterFunction<ViewFilesFunction>(); |
384 | 385 |
385 // Mediaplayer | 386 // Mediaplayer |
386 RegisterFunction<PlayAtMediaplayerFunction>(); | 387 RegisterFunction<PlayAtMediaplayerFunction>(); |
387 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 388 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
388 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 389 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
389 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 390 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
390 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 391 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
391 | 392 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 return function; | 657 return function; |
657 } | 658 } |
658 | 659 |
659 // static | 660 // static |
660 void ExtensionFunctionDispatcher::SendAccessDenied( | 661 void ExtensionFunctionDispatcher::SendAccessDenied( |
661 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 662 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
662 ipc_sender->Send(new ExtensionMsg_Response( | 663 ipc_sender->Send(new ExtensionMsg_Response( |
663 routing_id, request_id, false, std::string(), | 664 routing_id, request_id, false, std::string(), |
664 "Access to extension API denied.")); | 665 "Access to extension API denied.")); |
665 } | 666 } |
OLD | NEW |