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

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

Issue 9284013: Extension Storage API: expose storage quota information to extensions, via: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with use-after-free fixed Created 8 years, 10 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/settings/failing_settings_storage.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) 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_value_serializer.h" 9 #include "base/json/json_value_serializer.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // Debugger 436 // Debugger
437 RegisterFunction<AttachDebuggerFunction>(); 437 RegisterFunction<AttachDebuggerFunction>();
438 RegisterFunction<DetachDebuggerFunction>(); 438 RegisterFunction<DetachDebuggerFunction>();
439 RegisterFunction<SendCommandDebuggerFunction>(); 439 RegisterFunction<SendCommandDebuggerFunction>();
440 440
441 // Settings 441 // Settings
442 RegisterFunction<extensions::GetSettingsFunction>(); 442 RegisterFunction<extensions::GetSettingsFunction>();
443 RegisterFunction<extensions::SetSettingsFunction>(); 443 RegisterFunction<extensions::SetSettingsFunction>();
444 RegisterFunction<extensions::RemoveSettingsFunction>(); 444 RegisterFunction<extensions::RemoveSettingsFunction>();
445 RegisterFunction<extensions::ClearSettingsFunction>(); 445 RegisterFunction<extensions::ClearSettingsFunction>();
446 RegisterFunction<extensions::GetBytesInUseSettingsFunction>();
446 447
447 // Content settings. 448 // Content settings.
448 RegisterFunction<GetResourceIdentifiersFunction>(); 449 RegisterFunction<GetResourceIdentifiersFunction>();
449 RegisterFunction<ClearContentSettingsFunction>(); 450 RegisterFunction<ClearContentSettingsFunction>();
450 RegisterFunction<GetContentSettingFunction>(); 451 RegisterFunction<GetContentSettingFunction>();
451 RegisterFunction<SetContentSettingFunction>(); 452 RegisterFunction<SetContentSettingFunction>();
452 453
453 // ChromeAuth settings. 454 // ChromeAuth settings.
454 RegisterFunction<SetCloudPrintCredentialsFunction>(); 455 RegisterFunction<SetCloudPrintCredentialsFunction>();
455 456
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 return function; 759 return function;
759 } 760 }
760 761
761 // static 762 // static
762 void ExtensionFunctionDispatcher::SendAccessDenied( 763 void ExtensionFunctionDispatcher::SendAccessDenied(
763 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 764 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
764 ipc_sender->Send(new ExtensionMsg_Response( 765 ipc_sender->Send(new ExtensionMsg_Response(
765 routing_id, request_id, false, std::string(), 766 routing_id, request_id, false, std::string(),
766 "Access to extension API denied.")); 767 "Access to extension API denied."));
767 } 768 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/settings/failing_settings_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698