| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 348 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
| 349 RegisterFunction<GetVolumeMetadataFunction>(); | 349 RegisterFunction<GetVolumeMetadataFunction>(); |
| 350 RegisterFunction<RequestLocalFileSystemFunction>(); | 350 RegisterFunction<RequestLocalFileSystemFunction>(); |
| 351 RegisterFunction<AddFileWatchBrowserFunction>(); | 351 RegisterFunction<AddFileWatchBrowserFunction>(); |
| 352 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 352 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
| 353 RegisterFunction<SelectFileFunction>(); | 353 RegisterFunction<SelectFileFunction>(); |
| 354 RegisterFunction<SelectFilesFunction>(); | 354 RegisterFunction<SelectFilesFunction>(); |
| 355 RegisterFunction<AddMountFunction>(); | 355 RegisterFunction<AddMountFunction>(); |
| 356 RegisterFunction<RemoveMountFunction>(); | 356 RegisterFunction<RemoveMountFunction>(); |
| 357 RegisterFunction<GetMountPointsFunction>(); | 357 RegisterFunction<GetMountPointsFunction>(); |
| 358 RegisterFunction<FormatDeviceFunction>(); |
| 358 RegisterFunction<ViewFilesFunction>(); | 359 RegisterFunction<ViewFilesFunction>(); |
| 359 | 360 |
| 360 // Mediaplayer | 361 // Mediaplayer |
| 361 RegisterFunction<PlayAtMediaplayerFunction>(); | 362 RegisterFunction<PlayAtMediaplayerFunction>(); |
| 362 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 363 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
| 363 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 364 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
| 364 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 365 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 365 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 366 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 366 | 367 |
| 367 // InputMethod | 368 // InputMethod |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 return function; | 614 return function; |
| 614 } | 615 } |
| 615 | 616 |
| 616 // static | 617 // static |
| 617 void ExtensionFunctionDispatcher::SendAccessDenied( | 618 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 618 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 619 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 619 ipc_sender->Send(new ExtensionMsg_Response( | 620 ipc_sender->Send(new ExtensionMsg_Response( |
| 620 routing_id, request_id, false, std::string(), | 621 routing_id, request_id, false, std::string(), |
| 621 "Access to extension API denied.")); | 622 "Access to extension API denied.")); |
| 622 } | 623 } |
| OLD | NEW |