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