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

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

Issue 10178020: Start implementing an auth flow for platform apps to be able to do auth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
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_registry.h" 5 #include "chrome/browser/extensions/extension_function_registry.h"
6 6
7 #include "chrome/browser/accessibility/accessibility_extension_api.h" 7 #include "chrome/browser/accessibility/accessibility_extension_api.h"
8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h"
9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h"
10 #include "chrome/browser/download/download_extension_api.h" 10 #include "chrome/browser/download/download_extension_api.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 RegisterFunction<GetOffscreenTabFunction>(); 508 RegisterFunction<GetOffscreenTabFunction>();
509 RegisterFunction<GetAllOffscreenTabFunction>(); 509 RegisterFunction<GetAllOffscreenTabFunction>();
510 RegisterFunction<RemoveOffscreenTabFunction>(); 510 RegisterFunction<RemoveOffscreenTabFunction>();
511 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); 511 RegisterFunction<SendKeyboardEventOffscreenTabFunction>();
512 RegisterFunction<SendMouseEventOffscreenTabFunction>(); 512 RegisterFunction<SendMouseEventOffscreenTabFunction>();
513 RegisterFunction<ToDataUrlOffscreenTabFunction>(); 513 RegisterFunction<ToDataUrlOffscreenTabFunction>();
514 RegisterFunction<UpdateOffscreenTabFunction>(); 514 RegisterFunction<UpdateOffscreenTabFunction>();
515 515
516 // Identity 516 // Identity
517 RegisterFunction<extensions::GetAuthTokenFunction>(); 517 RegisterFunction<extensions::GetAuthTokenFunction>();
518 RegisterFunction<extensions::LaunchWebAuthFlowFunction>();
518 519
519 // Runtime 520 // Runtime
520 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); 521 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>();
521 522
522 // Media Gallery 523 // Media Gallery
523 RegisterFunction<extensions::GetMediaFileSystemsFunction>(); 524 RegisterFunction<extensions::GetMediaFileSystemsFunction>();
524 RegisterFunction<extensions::OpenMediaGalleryManagerFunction>(); 525 RegisterFunction<extensions::OpenMediaGalleryManagerFunction>();
525 RegisterFunction<extensions::AssembleMediaFileFunction>(); 526 RegisterFunction<extensions::AssembleMediaFileFunction>();
526 527
527 // Generated APIs 528 // Generated APIs
(...skipping 21 matching lines...) Expand all
549 } 550 }
550 551
551 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 552 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
552 const std::string& name) { 553 const std::string& name) {
553 FactoryMap::iterator iter = factories_.find(name); 554 FactoryMap::iterator iter = factories_.find(name);
554 DCHECK(iter != factories_.end()); 555 DCHECK(iter != factories_.end());
555 ExtensionFunction* function = iter->second(); 556 ExtensionFunction* function = iter->second();
556 function->set_name(name); 557 function->set_name(name);
557 return function; 558 return function;
558 } 559 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/web_auth_flow_unittest.cc ('k') | chrome/browser/ui/extensions/web_auth_flow_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698