| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |