| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 // Extension module. | 359 // Extension module. |
| 360 RegisterFunction<SetUpdateUrlDataFunction>(); | 360 RegisterFunction<SetUpdateUrlDataFunction>(); |
| 361 RegisterFunction<IsAllowedIncognitoAccessFunction>(); | 361 RegisterFunction<IsAllowedIncognitoAccessFunction>(); |
| 362 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); | 362 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); |
| 363 | 363 |
| 364 // WebstorePrivate. | 364 // WebstorePrivate. |
| 365 RegisterFunction<GetBrowserLoginFunction>(); | 365 RegisterFunction<GetBrowserLoginFunction>(); |
| 366 RegisterFunction<GetStoreLoginFunction>(); | 366 RegisterFunction<GetStoreLoginFunction>(); |
| 367 RegisterFunction<SetStoreLoginFunction>(); | 367 RegisterFunction<SetStoreLoginFunction>(); |
| 368 RegisterFunction<InstallBundleFunction>(); |
| 368 RegisterFunction<BeginInstallWithManifestFunction>(); | 369 RegisterFunction<BeginInstallWithManifestFunction>(); |
| 369 RegisterFunction<CompleteInstallFunction>(); | 370 RegisterFunction<CompleteInstallFunction>(); |
| 370 RegisterFunction<SilentlyInstallFunction>(); | 371 RegisterFunction<SilentlyInstallFunction>(); |
| 371 RegisterFunction<GetWebGLStatusFunction>(); | 372 RegisterFunction<GetWebGLStatusFunction>(); |
| 372 | 373 |
| 373 // WebNavigation. | 374 // WebNavigation. |
| 374 RegisterFunction<GetFrameFunction>(); | 375 RegisterFunction<GetFrameFunction>(); |
| 375 RegisterFunction<GetAllFramesFunction>(); | 376 RegisterFunction<GetAllFramesFunction>(); |
| 376 | 377 |
| 377 // WebRequest. | 378 // WebRequest. |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 return function; | 768 return function; |
| 768 } | 769 } |
| 769 | 770 |
| 770 // static | 771 // static |
| 771 void ExtensionFunctionDispatcher::SendAccessDenied( | 772 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 772 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 773 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 773 ipc_sender->Send(new ExtensionMsg_Response( | 774 ipc_sender->Send(new ExtensionMsg_Response( |
| 774 routing_id, request_id, false, std::string(), | 775 routing_id, request_id, false, std::string(), |
| 775 "Access to extension API denied.")); | 776 "Access to extension API denied.")); |
| 776 } | 777 } |
| OLD | NEW |