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

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

Issue 7189029: Implement an initial extension settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make clang happy Created 9 years, 4 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 #include "chrome/browser/extensions/extension_metrics_module.h" 31 #include "chrome/browser/extensions/extension_metrics_module.h"
32 #include "chrome/browser/extensions/extension_module.h" 32 #include "chrome/browser/extensions/extension_module.h"
33 #include "chrome/browser/extensions/extension_omnibox_api.h" 33 #include "chrome/browser/extensions/extension_omnibox_api.h"
34 #include "chrome/browser/extensions/extension_page_actions_module.h" 34 #include "chrome/browser/extensions/extension_page_actions_module.h"
35 #include "chrome/browser/extensions/extension_permissions_api.h" 35 #include "chrome/browser/extensions/extension_permissions_api.h"
36 #include "chrome/browser/extensions/extension_preference_api.h" 36 #include "chrome/browser/extensions/extension_preference_api.h"
37 #include "chrome/browser/extensions/extension_processes_api.h" 37 #include "chrome/browser/extensions/extension_processes_api.h"
38 #include "chrome/browser/extensions/extension_proxy_api.h" 38 #include "chrome/browser/extensions/extension_proxy_api.h"
39 #include "chrome/browser/extensions/extension_rlz_module.h" 39 #include "chrome/browser/extensions/extension_rlz_module.h"
40 #include "chrome/browser/extensions/extension_service.h" 40 #include "chrome/browser/extensions/extension_service.h"
41 #include "chrome/browser/extensions/extension_settings_api.h"
41 #include "chrome/browser/extensions/extension_sidebar_api.h" 42 #include "chrome/browser/extensions/extension_sidebar_api.h"
42 #include "chrome/browser/extensions/extension_tabs_module.h" 43 #include "chrome/browser/extensions/extension_tabs_module.h"
43 #include "chrome/browser/extensions/extension_test_api.h" 44 #include "chrome/browser/extensions/extension_test_api.h"
44 #include "chrome/browser/extensions/extension_tts_api.h" 45 #include "chrome/browser/extensions/extension_tts_api.h"
45 #include "chrome/browser/extensions/extension_tts_engine_api.h" 46 #include "chrome/browser/extensions/extension_tts_engine_api.h"
46 #include "chrome/browser/extensions/extension_web_socket_proxy_private_api.h" 47 #include "chrome/browser/extensions/extension_web_socket_proxy_private_api.h"
47 #include "chrome/browser/extensions/extension_web_ui.h" 48 #include "chrome/browser/extensions/extension_web_ui.h"
48 #include "chrome/browser/extensions/extension_webnavigation_api.h" 49 #include "chrome/browser/extensions/extension_webnavigation_api.h"
49 #include "chrome/browser/extensions/extension_webrequest_api.h" 50 #include "chrome/browser/extensions/extension_webrequest_api.h"
50 #include "chrome/browser/extensions/extension_webstore_private_api.h" 51 #include "chrome/browser/extensions/extension_webstore_private_api.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 #endif 389 #endif
389 390
390 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. 391 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS.
391 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); 392 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>();
392 393
393 // Debugger 394 // Debugger
394 RegisterFunction<AttachDebuggerFunction>(); 395 RegisterFunction<AttachDebuggerFunction>();
395 RegisterFunction<DetachDebuggerFunction>(); 396 RegisterFunction<DetachDebuggerFunction>();
396 RegisterFunction<SendRequestDebuggerFunction>(); 397 RegisterFunction<SendRequestDebuggerFunction>();
397 398
399 // Settings
400 RegisterFunction<GetSettingsFunction>();
401 RegisterFunction<SetSettingsFunction>();
402 RegisterFunction<RemoveSettingsFunction>();
403 RegisterFunction<ClearSettingsFunction>();
404
398 // Content settings. 405 // Content settings.
399 RegisterFunction<GetResourceIdentifiersFunction>(); 406 RegisterFunction<GetResourceIdentifiersFunction>();
400 RegisterFunction<ClearContentSettingsFunction>(); 407 RegisterFunction<ClearContentSettingsFunction>();
401 RegisterFunction<GetContentSettingFunction>(); 408 RegisterFunction<GetContentSettingFunction>();
402 RegisterFunction<SetContentSettingFunction>(); 409 RegisterFunction<SetContentSettingFunction>();
403 410
404 // ChromeAuth settings. 411 // ChromeAuth settings.
405 RegisterFunction<SetCloudPrintCredentialsFunction>(); 412 RegisterFunction<SetCloudPrintCredentialsFunction>();
406 413
407 // Experimental App API. 414 // Experimental App API.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 return function; 633 return function;
627 } 634 }
628 635
629 // static 636 // static
630 void ExtensionFunctionDispatcher::SendAccessDenied( 637 void ExtensionFunctionDispatcher::SendAccessDenied(
631 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 638 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
632 ipc_sender->Send(new ExtensionMsg_Response( 639 ipc_sender->Send(new ExtensionMsg_Response(
633 routing_id, request_id, false, std::string(), 640 routing_id, request_id, false, std::string(),
634 "Access to extension API denied.")); 641 "Access to extension API denied."));
635 } 642 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698