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

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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 RegisterFunction<GetOffscreenTabFunction>(); 506 RegisterFunction<GetOffscreenTabFunction>();
507 RegisterFunction<GetAllOffscreenTabFunction>(); 507 RegisterFunction<GetAllOffscreenTabFunction>();
508 RegisterFunction<RemoveOffscreenTabFunction>(); 508 RegisterFunction<RemoveOffscreenTabFunction>();
509 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); 509 RegisterFunction<SendKeyboardEventOffscreenTabFunction>();
510 RegisterFunction<SendMouseEventOffscreenTabFunction>(); 510 RegisterFunction<SendMouseEventOffscreenTabFunction>();
511 RegisterFunction<ToDataUrlOffscreenTabFunction>(); 511 RegisterFunction<ToDataUrlOffscreenTabFunction>();
512 RegisterFunction<UpdateOffscreenTabFunction>(); 512 RegisterFunction<UpdateOffscreenTabFunction>();
513 513
514 // Identity 514 // Identity
515 RegisterFunction<extensions::GetAuthTokenFunction>(); 515 RegisterFunction<extensions::GetAuthTokenFunction>();
516 RegisterFunction<extensions::LaunchWebAuthFlowFunction>();
516 517
517 // Runtime 518 // Runtime
518 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); 519 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>();
519 520
520 // Media Gallery 521 // Media Gallery
521 RegisterFunction<extensions::GetMediaFileSystemsFunction>(); 522 RegisterFunction<extensions::GetMediaFileSystemsFunction>();
522 RegisterFunction<extensions::OpenMediaGalleryManagerFunction>(); 523 RegisterFunction<extensions::OpenMediaGalleryManagerFunction>();
523 RegisterFunction<extensions::AssembleMediaFileFunction>(); 524 RegisterFunction<extensions::AssembleMediaFileFunction>();
524 525
525 // Generated APIs 526 // Generated APIs
(...skipping 21 matching lines...) Expand all
547 } 548 }
548 549
549 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 550 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
550 const std::string& name) { 551 const std::string& name) {
551 FactoryMap::iterator iter = factories_.find(name); 552 FactoryMap::iterator iter = factories_.find(name);
552 DCHECK(iter != factories_.end()); 553 DCHECK(iter != factories_.end());
553 ExtensionFunction* function = iter->second(); 554 ExtensionFunction* function = iter->second();
554 function->set_name(name); 555 function->set_name(name);
555 return function; 556 return function;
556 } 557 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698