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_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 RegisterFunction<StartDragBookmarkManagerFunction>(); | 233 RegisterFunction<StartDragBookmarkManagerFunction>(); |
234 RegisterFunction<DropBookmarkManagerFunction>(); | 234 RegisterFunction<DropBookmarkManagerFunction>(); |
235 RegisterFunction<GetSubtreeBookmarkManagerFunction>(); | 235 RegisterFunction<GetSubtreeBookmarkManagerFunction>(); |
236 RegisterFunction<CanEditBookmarkManagerFunction>(); | 236 RegisterFunction<CanEditBookmarkManagerFunction>(); |
237 | 237 |
238 // History | 238 // History |
239 RegisterFunction<AddUrlHistoryFunction>(); | 239 RegisterFunction<AddUrlHistoryFunction>(); |
240 RegisterFunction<DeleteAllHistoryFunction>(); | 240 RegisterFunction<DeleteAllHistoryFunction>(); |
241 RegisterFunction<DeleteRangeHistoryFunction>(); | 241 RegisterFunction<DeleteRangeHistoryFunction>(); |
242 RegisterFunction<DeleteUrlHistoryFunction>(); | 242 RegisterFunction<DeleteUrlHistoryFunction>(); |
| 243 RegisterFunction<GetMostVisitedHistoryFunction>(); |
243 RegisterFunction<GetVisitsHistoryFunction>(); | 244 RegisterFunction<GetVisitsHistoryFunction>(); |
244 RegisterFunction<SearchHistoryFunction>(); | 245 RegisterFunction<SearchHistoryFunction>(); |
245 | 246 |
246 // Idle | 247 // Idle |
247 RegisterFunction<ExtensionIdleQueryStateFunction>(); | 248 RegisterFunction<ExtensionIdleQueryStateFunction>(); |
248 | 249 |
249 // I18N. | 250 // I18N. |
250 RegisterFunction<GetAcceptLanguagesFunction>(); | 251 RegisterFunction<GetAcceptLanguagesFunction>(); |
251 | 252 |
252 // Processes. | 253 // Processes. |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 return function; | 788 return function; |
788 } | 789 } |
789 | 790 |
790 // static | 791 // static |
791 void ExtensionFunctionDispatcher::SendAccessDenied( | 792 void ExtensionFunctionDispatcher::SendAccessDenied( |
792 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 793 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
793 ipc_sender->Send(new ExtensionMsg_Response( | 794 ipc_sender->Send(new ExtensionMsg_Response( |
794 routing_id, request_id, false, std::string(), | 795 routing_id, request_id, false, std::string(), |
795 "Access to extension API denied.")); | 796 "Access to extension API denied.")); |
796 } | 797 } |
OLD | NEW |