| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 RegisterFunction<RemoveBrowsingDataFunction>(); | 194 RegisterFunction<RemoveBrowsingDataFunction>(); |
| 195 RegisterFunction<RemoveAppCacheFunction>(); | 195 RegisterFunction<RemoveAppCacheFunction>(); |
| 196 RegisterFunction<RemoveCacheFunction>(); | 196 RegisterFunction<RemoveCacheFunction>(); |
| 197 RegisterFunction<RemoveCookiesFunction>(); | 197 RegisterFunction<RemoveCookiesFunction>(); |
| 198 RegisterFunction<RemoveDownloadsFunction>(); | 198 RegisterFunction<RemoveDownloadsFunction>(); |
| 199 RegisterFunction<RemoveFileSystemsFunction>(); | 199 RegisterFunction<RemoveFileSystemsFunction>(); |
| 200 RegisterFunction<RemoveFormDataFunction>(); | 200 RegisterFunction<RemoveFormDataFunction>(); |
| 201 RegisterFunction<RemoveHistoryFunction>(); | 201 RegisterFunction<RemoveHistoryFunction>(); |
| 202 RegisterFunction<RemoveIndexedDBFunction>(); | 202 RegisterFunction<RemoveIndexedDBFunction>(); |
| 203 RegisterFunction<RemoveLocalStorageFunction>(); | 203 RegisterFunction<RemoveLocalStorageFunction>(); |
| 204 RegisterFunction<RemoveOriginBoundCertsFunction>(); | 204 RegisterFunction<RemoveServerBoundCertsFunction>(); |
| 205 RegisterFunction<RemovePluginDataFunction>(); | 205 RegisterFunction<RemovePluginDataFunction>(); |
| 206 RegisterFunction<RemovePasswordsFunction>(); | 206 RegisterFunction<RemovePasswordsFunction>(); |
| 207 RegisterFunction<RemoveWebSQLFunction>(); | 207 RegisterFunction<RemoveWebSQLFunction>(); |
| 208 | 208 |
| 209 // Bookmarks. | 209 // Bookmarks. |
| 210 RegisterFunction<GetBookmarksFunction>(); | 210 RegisterFunction<GetBookmarksFunction>(); |
| 211 RegisterFunction<GetBookmarkChildrenFunction>(); | 211 RegisterFunction<GetBookmarkChildrenFunction>(); |
| 212 RegisterFunction<GetBookmarkRecentFunction>(); | 212 RegisterFunction<GetBookmarkRecentFunction>(); |
| 213 RegisterFunction<GetBookmarkTreeFunction>(); | 213 RegisterFunction<GetBookmarkTreeFunction>(); |
| 214 RegisterFunction<GetBookmarkSubTreeFunction>(); | 214 RegisterFunction<GetBookmarkSubTreeFunction>(); |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 return function; | 799 return function; |
| 800 } | 800 } |
| 801 | 801 |
| 802 // static | 802 // static |
| 803 void ExtensionFunctionDispatcher::SendAccessDenied( | 803 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 804 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 804 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 805 ipc_sender->Send(new ExtensionMsg_Response( | 805 ipc_sender->Send(new ExtensionMsg_Response( |
| 806 routing_id, request_id, false, std::string(), | 806 routing_id, request_id, false, std::string(), |
| 807 "Access to extension API denied.")); | 807 "Access to extension API denied.")); |
| 808 } | 808 } |
| OLD | NEW |