Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 8952014: Reland of r114615: "chrome.clear: Increasing granularity of public API" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // Browser Actions. 179 // Browser Actions.
180 RegisterFunction<BrowserActionSetIconFunction>(); 180 RegisterFunction<BrowserActionSetIconFunction>();
181 RegisterFunction<BrowserActionSetTitleFunction>(); 181 RegisterFunction<BrowserActionSetTitleFunction>();
182 RegisterFunction<BrowserActionSetBadgeTextFunction>(); 182 RegisterFunction<BrowserActionSetBadgeTextFunction>();
183 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); 183 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>();
184 RegisterFunction<BrowserActionSetPopupFunction>(); 184 RegisterFunction<BrowserActionSetPopupFunction>();
185 185
186 // Browsing Data. 186 // Browsing Data.
187 RegisterFunction<ClearBrowsingDataFunction>(); 187 RegisterFunction<ClearBrowsingDataFunction>();
188 RegisterFunction<ClearAppCacheFunction>();
188 RegisterFunction<ClearCacheFunction>(); 189 RegisterFunction<ClearCacheFunction>();
189 RegisterFunction<ClearCookiesFunction>(); 190 RegisterFunction<ClearCookiesFunction>();
190 RegisterFunction<ClearDownloadsFunction>(); 191 RegisterFunction<ClearDownloadsFunction>();
192 RegisterFunction<ClearFileSystemsFunction>();
191 RegisterFunction<ClearFormDataFunction>(); 193 RegisterFunction<ClearFormDataFunction>();
192 RegisterFunction<ClearHistoryFunction>(); 194 RegisterFunction<ClearHistoryFunction>();
195 RegisterFunction<ClearIndexedDBFunction>();
196 RegisterFunction<ClearLocalStorageFunction>();
197 RegisterFunction<ClearPluginDataFunction>();
193 RegisterFunction<ClearPasswordsFunction>(); 198 RegisterFunction<ClearPasswordsFunction>();
199 RegisterFunction<ClearWebSQLFunction>();
194 200
195 // Bookmarks. 201 // Bookmarks.
196 RegisterFunction<GetBookmarksFunction>(); 202 RegisterFunction<GetBookmarksFunction>();
197 RegisterFunction<GetBookmarkChildrenFunction>(); 203 RegisterFunction<GetBookmarkChildrenFunction>();
198 RegisterFunction<GetBookmarkRecentFunction>(); 204 RegisterFunction<GetBookmarkRecentFunction>();
199 RegisterFunction<GetBookmarkTreeFunction>(); 205 RegisterFunction<GetBookmarkTreeFunction>();
200 RegisterFunction<GetBookmarkSubTreeFunction>(); 206 RegisterFunction<GetBookmarkSubTreeFunction>();
201 RegisterFunction<SearchBookmarksFunction>(); 207 RegisterFunction<SearchBookmarksFunction>();
202 RegisterFunction<RemoveBookmarkFunction>(); 208 RegisterFunction<RemoveBookmarkFunction>();
203 RegisterFunction<RemoveTreeBookmarkFunction>(); 209 RegisterFunction<RemoveTreeBookmarkFunction>();
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return function; 706 return function;
701 } 707 }
702 708
703 // static 709 // static
704 void ExtensionFunctionDispatcher::SendAccessDenied( 710 void ExtensionFunctionDispatcher::SendAccessDenied(
705 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 711 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
706 ipc_sender->Send(new ExtensionMsg_Response( 712 ipc_sender->Send(new ExtensionMsg_Response(
707 routing_id, request_id, false, std::string(), 713 routing_id, request_id, false, std::string(),
708 "Access to extension API denied.")); 714 "Access to extension API denied."));
709 } 715 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_clear_test.cc ('k') | chrome/browser/extensions/extension_function_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698