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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 RegisterFunction<IsAllowedIncognitoAccessFunction>(); | 354 RegisterFunction<IsAllowedIncognitoAccessFunction>(); |
355 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); | 355 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); |
356 | 356 |
357 // WebstorePrivate. | 357 // WebstorePrivate. |
358 RegisterFunction<GetBrowserLoginFunction>(); | 358 RegisterFunction<GetBrowserLoginFunction>(); |
359 RegisterFunction<GetStoreLoginFunction>(); | 359 RegisterFunction<GetStoreLoginFunction>(); |
360 RegisterFunction<SetStoreLoginFunction>(); | 360 RegisterFunction<SetStoreLoginFunction>(); |
361 RegisterFunction<BeginInstallWithManifestFunction>(); | 361 RegisterFunction<BeginInstallWithManifestFunction>(); |
362 RegisterFunction<CompleteInstallFunction>(); | 362 RegisterFunction<CompleteInstallFunction>(); |
363 RegisterFunction<SilentlyInstallFunction>(); | 363 RegisterFunction<SilentlyInstallFunction>(); |
| 364 RegisterFunction<GetWebGLStatusFunction>(); |
364 | 365 |
365 // WebNavigation. | 366 // WebNavigation. |
366 RegisterFunction<GetFrameFunction>(); | 367 RegisterFunction<GetFrameFunction>(); |
367 RegisterFunction<GetAllFramesFunction>(); | 368 RegisterFunction<GetAllFramesFunction>(); |
368 | 369 |
369 // WebRequest. | 370 // WebRequest. |
370 RegisterFunction<WebRequestAddEventListener>(); | 371 RegisterFunction<WebRequestAddEventListener>(); |
371 RegisterFunction<WebRequestEventHandled>(); | 372 RegisterFunction<WebRequestEventHandled>(); |
372 RegisterFunction<WebRequestHandlerBehaviorChanged>(); | 373 RegisterFunction<WebRequestHandlerBehaviorChanged>(); |
373 | 374 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 return function; | 683 return function; |
683 } | 684 } |
684 | 685 |
685 // static | 686 // static |
686 void ExtensionFunctionDispatcher::SendAccessDenied( | 687 void ExtensionFunctionDispatcher::SendAccessDenied( |
687 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 688 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
688 ipc_sender->Send(new ExtensionMsg_Response( | 689 ipc_sender->Send(new ExtensionMsg_Response( |
689 routing_id, request_id, false, std::string(), | 690 routing_id, request_id, false, std::string(), |
690 "Access to extension API denied.")); | 691 "Access to extension API denied.")); |
691 } | 692 } |
OLD | NEW |