| 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/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/json/json_value_serializer.h" | 9 #include "base/json/json_value_serializer.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 359 |
| 360 // Extension module. | 360 // Extension module. |
| 361 RegisterFunction<SetUpdateUrlDataFunction>(); | 361 RegisterFunction<SetUpdateUrlDataFunction>(); |
| 362 RegisterFunction<IsAllowedIncognitoAccessFunction>(); | 362 RegisterFunction<IsAllowedIncognitoAccessFunction>(); |
| 363 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); | 363 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); |
| 364 | 364 |
| 365 // WebstorePrivate. | 365 // WebstorePrivate. |
| 366 RegisterFunction<GetBrowserLoginFunction>(); | 366 RegisterFunction<GetBrowserLoginFunction>(); |
| 367 RegisterFunction<GetStoreLoginFunction>(); | 367 RegisterFunction<GetStoreLoginFunction>(); |
| 368 RegisterFunction<SetStoreLoginFunction>(); | 368 RegisterFunction<SetStoreLoginFunction>(); |
| 369 RegisterFunction<InstallBundleFunction>(); |
| 369 RegisterFunction<BeginInstallWithManifestFunction>(); | 370 RegisterFunction<BeginInstallWithManifestFunction>(); |
| 370 RegisterFunction<CompleteInstallFunction>(); | 371 RegisterFunction<CompleteInstallFunction>(); |
| 371 RegisterFunction<SilentlyInstallFunction>(); | 372 RegisterFunction<SilentlyInstallFunction>(); |
| 372 RegisterFunction<GetWebGLStatusFunction>(); | 373 RegisterFunction<GetWebGLStatusFunction>(); |
| 373 | 374 |
| 374 // WebNavigation. | 375 // WebNavigation. |
| 375 RegisterFunction<GetFrameFunction>(); | 376 RegisterFunction<GetFrameFunction>(); |
| 376 RegisterFunction<GetAllFramesFunction>(); | 377 RegisterFunction<GetAllFramesFunction>(); |
| 377 | 378 |
| 378 // WebRequest. | 379 // WebRequest. |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 return function; | 774 return function; |
| 774 } | 775 } |
| 775 | 776 |
| 776 // static | 777 // static |
| 777 void ExtensionFunctionDispatcher::SendAccessDenied( | 778 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 778 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 779 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 779 ipc_sender->Send(new ExtensionMsg_Response( | 780 ipc_sender->Send(new ExtensionMsg_Response( |
| 780 routing_id, request_id, false, std::string(), | 781 routing_id, request_id, false, std::string(), |
| 781 "Access to extension API denied.")); | 782 "Access to extension API denied.")); |
| 782 } | 783 } |
| OLD | NEW |