| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 RegisterFunction<RemoveBrowsingDataFunction>(); | 193 RegisterFunction<RemoveBrowsingDataFunction>(); |
| 194 RegisterFunction<RemoveAppCacheFunction>(); | 194 RegisterFunction<RemoveAppCacheFunction>(); |
| 195 RegisterFunction<RemoveCacheFunction>(); | 195 RegisterFunction<RemoveCacheFunction>(); |
| 196 RegisterFunction<RemoveCookiesFunction>(); | 196 RegisterFunction<RemoveCookiesFunction>(); |
| 197 RegisterFunction<RemoveDownloadsFunction>(); | 197 RegisterFunction<RemoveDownloadsFunction>(); |
| 198 RegisterFunction<RemoveFileSystemsFunction>(); | 198 RegisterFunction<RemoveFileSystemsFunction>(); |
| 199 RegisterFunction<RemoveFormDataFunction>(); | 199 RegisterFunction<RemoveFormDataFunction>(); |
| 200 RegisterFunction<RemoveHistoryFunction>(); | 200 RegisterFunction<RemoveHistoryFunction>(); |
| 201 RegisterFunction<RemoveIndexedDBFunction>(); | 201 RegisterFunction<RemoveIndexedDBFunction>(); |
| 202 RegisterFunction<RemoveLocalStorageFunction>(); | 202 RegisterFunction<RemoveLocalStorageFunction>(); |
| 203 RegisterFunction<RemoveOriginBoundCertsFunction>(); | 203 RegisterFunction<RemoveDomainBoundCertsFunction>(); |
| 204 RegisterFunction<RemovePluginDataFunction>(); | 204 RegisterFunction<RemovePluginDataFunction>(); |
| 205 RegisterFunction<RemovePasswordsFunction>(); | 205 RegisterFunction<RemovePasswordsFunction>(); |
| 206 RegisterFunction<RemoveWebSQLFunction>(); | 206 RegisterFunction<RemoveWebSQLFunction>(); |
| 207 | 207 |
| 208 // Bookmarks. | 208 // Bookmarks. |
| 209 RegisterFunction<GetBookmarksFunction>(); | 209 RegisterFunction<GetBookmarksFunction>(); |
| 210 RegisterFunction<GetBookmarkChildrenFunction>(); | 210 RegisterFunction<GetBookmarkChildrenFunction>(); |
| 211 RegisterFunction<GetBookmarkRecentFunction>(); | 211 RegisterFunction<GetBookmarkRecentFunction>(); |
| 212 RegisterFunction<GetBookmarkTreeFunction>(); | 212 RegisterFunction<GetBookmarkTreeFunction>(); |
| 213 RegisterFunction<GetBookmarkSubTreeFunction>(); | 213 RegisterFunction<GetBookmarkSubTreeFunction>(); |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 return function; | 790 return function; |
| 791 } | 791 } |
| 792 | 792 |
| 793 // static | 793 // static |
| 794 void ExtensionFunctionDispatcher::SendAccessDenied( | 794 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 795 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 795 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 796 ipc_sender->Send(new ExtensionMsg_Response( | 796 ipc_sender->Send(new ExtensionMsg_Response( |
| 797 routing_id, request_id, false, std::string(), | 797 routing_id, request_id, false, std::string(), |
| 798 "Access to extension API denied.")); | 798 "Access to extension API denied.")); |
| 799 } | 799 } |
| OLD | NEW |