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

Side by Side Diff: extensions/browser/extension_function.h

Issue 1060993003: [Extensions UI] Use developerPrivate API for profile configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 friend struct ExtensionFunctionDeleteTraits; 280 friend struct ExtensionFunctionDeleteTraits;
281 281
282 // ResponseValues. 282 // ResponseValues.
283 // 283 //
284 // Success, no arguments to pass to caller. 284 // Success, no arguments to pass to caller.
285 ResponseValue NoArguments(); 285 ResponseValue NoArguments();
286 // Success, a single argument |arg| to pass to caller. TAKES OWNERSHIP - a 286 // Success, a single argument |arg| to pass to caller. TAKES OWNERSHIP - a
287 // raw pointer for convenience, since callers usually construct the argument 287 // raw pointer for convenience, since callers usually construct the argument
288 // to this by hand. 288 // to this by hand.
289 ResponseValue OneArgument(base::Value* arg); 289 ResponseValue OneArgument(base::Value* arg);
290 // Success, a single argument |arg| to pass to caller.
291 ResponseValue OneArgument(scoped_ptr<base::Value> arg);
290 // Success, two arguments |arg1| and |arg2| to pass to caller. TAKES 292 // Success, two arguments |arg1| and |arg2| to pass to caller. TAKES
291 // OWNERSHIP - raw pointers for convenience, since callers usually construct 293 // OWNERSHIP - raw pointers for convenience, since callers usually construct
292 // the argument to this by hand. Note that use of this function may imply you 294 // the argument to this by hand. Note that use of this function may imply you
293 // should be using the generated Result struct and ArgumentList. 295 // should be using the generated Result struct and ArgumentList.
294 ResponseValue TwoArguments(base::Value* arg1, base::Value* arg2); 296 ResponseValue TwoArguments(base::Value* arg1, base::Value* arg2);
295 // Success, a list of arguments |results| to pass to caller. TAKES OWNERSHIP 297 // Success, a list of arguments |results| to pass to caller. TAKES OWNERSHIP
296 // - a scoped_ptr<> for convenience, since callers usually get this from the 298 // - a scoped_ptr<> for convenience, since callers usually get this from the
297 // result of a Create(...) call on the generated Results struct, for example, 299 // result of a Create(...) call on the generated Results struct, for example,
298 // alarms::Get::Results::Create(alarm). 300 // alarms::Get::Results::Create(alarm).
299 ResponseValue ArgumentList(scoped_ptr<base::ListValue> results); 301 ResponseValue ArgumentList(scoped_ptr<base::ListValue> results);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 static bool ValidationFailure(SyncIOThreadExtensionFunction* function); 660 static bool ValidationFailure(SyncIOThreadExtensionFunction* function);
659 661
660 private: 662 private:
661 // If you're hitting a compile error here due to "final" - great! You're 663 // If you're hitting a compile error here due to "final" - great! You're
662 // doing the right thing, you just need to extend IOThreadExtensionFunction 664 // doing the right thing, you just need to extend IOThreadExtensionFunction
663 // instead of SyncIOExtensionFunction. 665 // instead of SyncIOExtensionFunction.
664 ResponseAction Run() final; 666 ResponseAction Run() final;
665 }; 667 };
666 668
667 #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_ 669 #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/developer_private.idl ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698