| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 // Extension module. | 328 // Extension module. |
| 329 RegisterFunction<SetUpdateUrlDataFunction>(); | 329 RegisterFunction<SetUpdateUrlDataFunction>(); |
| 330 RegisterFunction<IsAllowedIncognitoAccessFunction>(); | 330 RegisterFunction<IsAllowedIncognitoAccessFunction>(); |
| 331 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); | 331 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); |
| 332 | 332 |
| 333 // WebstorePrivate. | 333 // WebstorePrivate. |
| 334 RegisterFunction<GetBrowserLoginFunction>(); | 334 RegisterFunction<GetBrowserLoginFunction>(); |
| 335 RegisterFunction<GetStoreLoginFunction>(); | 335 RegisterFunction<GetStoreLoginFunction>(); |
| 336 RegisterFunction<SetStoreLoginFunction>(); | 336 RegisterFunction<SetStoreLoginFunction>(); |
| 337 RegisterFunction<PromptBrowserLoginFunction>(); | |
| 338 RegisterFunction<BeginInstallFunction>(); | 337 RegisterFunction<BeginInstallFunction>(); |
| 339 RegisterFunction<BeginInstallWithManifestFunction>(); | 338 RegisterFunction<BeginInstallWithManifestFunction>(); |
| 340 RegisterFunction<CompleteInstallFunction>(); | 339 RegisterFunction<CompleteInstallFunction>(); |
| 341 | 340 |
| 342 // WebNavigation. | 341 // WebNavigation. |
| 343 RegisterFunction<GetFrameFunction>(); | 342 RegisterFunction<GetFrameFunction>(); |
| 344 | 343 |
| 345 // WebRequest. | 344 // WebRequest. |
| 346 RegisterFunction<WebRequestAddEventListener>(); | 345 RegisterFunction<WebRequestAddEventListener>(); |
| 347 RegisterFunction<WebRequestEventHandled>(); | 346 RegisterFunction<WebRequestEventHandled>(); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 return function; | 646 return function; |
| 648 } | 647 } |
| 649 | 648 |
| 650 // static | 649 // static |
| 651 void ExtensionFunctionDispatcher::SendAccessDenied( | 650 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 652 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 651 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 653 ipc_sender->Send(new ExtensionMsg_Response( | 652 ipc_sender->Send(new ExtensionMsg_Response( |
| 654 routing_id, request_id, false, std::string(), | 653 routing_id, request_id, false, std::string(), |
| 655 "Access to extension API denied.")); | 654 "Access to extension API denied.")); |
| 656 } | 655 } |
| OLD | NEW |