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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 #if defined(TOOLKIT_VIEWS) | 73 #if defined(TOOLKIT_VIEWS) |
74 #include "chrome/browser/extensions/extension_input_api.h" | 74 #include "chrome/browser/extensions/extension_input_api.h" |
75 #endif | 75 #endif |
76 | 76 |
77 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) | 77 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
78 #include "chrome/browser/extensions/extension_input_ui_api.h" | 78 #include "chrome/browser/extensions/extension_input_ui_api.h" |
79 #endif | 79 #endif |
80 | 80 |
81 #if defined(OS_CHROMEOS) | 81 #if defined(OS_CHROMEOS) |
82 #include "chrome/browser/chromeos/extensions/file_browser_extension_api.h" | 82 #include "chrome/browser/extensions/extension_file_browser_private_api.h" |
83 #include "chrome/browser/chromeos/extensions/get_chromeos_info_extension_api.h" | 83 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" |
84 #include "chrome/browser/chromeos/extensions/media_player_extension_api.h" | 84 #include "chrome/browser/extensions/extension_input_ime_api.h" |
85 #include "chrome/browser/chromeos/extensions/input_ime_extension_api.h" | 85 #include "chrome/browser/extensions/extension_input_method_api.h" |
86 #include "chrome/browser/chromeos/extensions/input_method_extension_api.h" | 86 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h" |
87 #endif | 87 #endif |
88 | 88 |
89 using extensions::ExtensionAPI; | 89 using extensions::ExtensionAPI; |
90 | 90 |
91 // FactoryRegistry ------------------------------------------------------------- | 91 // FactoryRegistry ------------------------------------------------------------- |
92 | 92 |
93 namespace { | 93 namespace { |
94 | 94 |
95 // Template for defining ExtensionFunctionFactory. | 95 // Template for defining ExtensionFunctionFactory. |
96 template<class T> | 96 template<class T> |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 return function; | 683 return function; |
684 } | 684 } |
685 | 685 |
686 // static | 686 // static |
687 void ExtensionFunctionDispatcher::SendAccessDenied( | 687 void ExtensionFunctionDispatcher::SendAccessDenied( |
688 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 688 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
689 ipc_sender->Send(new ExtensionMsg_Response( | 689 ipc_sender->Send(new ExtensionMsg_Response( |
690 routing_id, request_id, false, std::string(), | 690 routing_id, request_id, false, std::string(), |
691 "Access to extension API denied.")); | 691 "Access to extension API denied.")); |
692 } | 692 } |
OLD | NEW |