| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 RegisterFunction<GetVolumeMetadataFunction>(); | 364 RegisterFunction<GetVolumeMetadataFunction>(); |
| 365 RegisterFunction<RequestLocalFileSystemFunction>(); | 365 RegisterFunction<RequestLocalFileSystemFunction>(); |
| 366 RegisterFunction<AddFileWatchBrowserFunction>(); | 366 RegisterFunction<AddFileWatchBrowserFunction>(); |
| 367 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 367 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
| 368 RegisterFunction<SelectFileFunction>(); | 368 RegisterFunction<SelectFileFunction>(); |
| 369 RegisterFunction<SelectFilesFunction>(); | 369 RegisterFunction<SelectFilesFunction>(); |
| 370 RegisterFunction<AddMountFunction>(); | 370 RegisterFunction<AddMountFunction>(); |
| 371 RegisterFunction<RemoveMountFunction>(); | 371 RegisterFunction<RemoveMountFunction>(); |
| 372 RegisterFunction<GetMountPointsFunction>(); | 372 RegisterFunction<GetMountPointsFunction>(); |
| 373 RegisterFunction<FormatDeviceFunction>(); | 373 RegisterFunction<FormatDeviceFunction>(); |
| 374 RegisterFunction<FormatUnmountedDeviceFunction>(); |
| 374 RegisterFunction<ViewFilesFunction>(); | 375 RegisterFunction<ViewFilesFunction>(); |
| 375 | 376 |
| 376 // Mediaplayer | 377 // Mediaplayer |
| 377 RegisterFunction<PlayAtMediaplayerFunction>(); | 378 RegisterFunction<PlayAtMediaplayerFunction>(); |
| 378 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 379 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
| 379 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 380 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
| 380 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 381 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 381 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 382 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 382 | 383 |
| 383 // InputMethod | 384 // InputMethod |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 return function; | 648 return function; |
| 648 } | 649 } |
| 649 | 650 |
| 650 // static | 651 // static |
| 651 void ExtensionFunctionDispatcher::SendAccessDenied( | 652 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 652 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 653 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 653 ipc_sender->Send(new ExtensionMsg_Response( | 654 ipc_sender->Send(new ExtensionMsg_Response( |
| 654 routing_id, request_id, false, std::string(), | 655 routing_id, request_id, false, std::string(), |
| 655 "Access to extension API denied.")); | 656 "Access to extension API denied.")); |
| 656 } | 657 } |
| OLD | NEW |