OLD | NEW |
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 RegisterFunction<GetOffscreenTabFunction>(); | 505 RegisterFunction<GetOffscreenTabFunction>(); |
506 RegisterFunction<GetAllOffscreenTabFunction>(); | 506 RegisterFunction<GetAllOffscreenTabFunction>(); |
507 RegisterFunction<RemoveOffscreenTabFunction>(); | 507 RegisterFunction<RemoveOffscreenTabFunction>(); |
508 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); | 508 RegisterFunction<SendKeyboardEventOffscreenTabFunction>(); |
509 RegisterFunction<SendMouseEventOffscreenTabFunction>(); | 509 RegisterFunction<SendMouseEventOffscreenTabFunction>(); |
510 RegisterFunction<ToDataUrlOffscreenTabFunction>(); | 510 RegisterFunction<ToDataUrlOffscreenTabFunction>(); |
511 RegisterFunction<UpdateOffscreenTabFunction>(); | 511 RegisterFunction<UpdateOffscreenTabFunction>(); |
512 | 512 |
513 // Identity | 513 // Identity |
514 RegisterFunction<extensions::GetAuthTokenFunction>(); | 514 RegisterFunction<extensions::GetAuthTokenFunction>(); |
| 515 RegisterFunction<extensions::LaunchWebAuthFlowFunction>(); |
515 | 516 |
516 // Runtime | 517 // Runtime |
517 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); | 518 RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); |
518 | 519 |
519 // Generated APIs | 520 // Generated APIs |
520 extensions::api::GeneratedFunctionRegistry::RegisterAll(this); | 521 extensions::api::GeneratedFunctionRegistry::RegisterAll(this); |
521 #endif // defined(ENABLE_EXTENSIONS) | 522 #endif // defined(ENABLE_EXTENSIONS) |
522 } | 523 } |
523 | 524 |
524 void ExtensionFunctionRegistry::GetAllNames(std::vector<std::string>* names) { | 525 void ExtensionFunctionRegistry::GetAllNames(std::vector<std::string>* names) { |
(...skipping 16 matching lines...) Expand all Loading... |
541 } | 542 } |
542 | 543 |
543 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 544 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
544 const std::string& name) { | 545 const std::string& name) { |
545 FactoryMap::iterator iter = factories_.find(name); | 546 FactoryMap::iterator iter = factories_.find(name); |
546 DCHECK(iter != factories_.end()); | 547 DCHECK(iter != factories_.end()); |
547 ExtensionFunction* function = iter->second(); | 548 ExtensionFunction* function = iter->second(); |
548 function->set_name(name); | 549 function->set_name(name); |
549 return function; | 550 return function; |
550 } | 551 } |
OLD | NEW |