| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 RegisterFunction<SetTitleSidebarFunction>(); | 266 RegisterFunction<SetTitleSidebarFunction>(); |
| 267 RegisterFunction<ShowSidebarFunction>(); | 267 RegisterFunction<ShowSidebarFunction>(); |
| 268 | 268 |
| 269 #if defined(TOOLKIT_VIEWS) | 269 #if defined(TOOLKIT_VIEWS) |
| 270 // Input. | 270 // Input. |
| 271 RegisterFunction<SendKeyboardEventInputFunction>(); | 271 RegisterFunction<SendKeyboardEventInputFunction>(); |
| 272 #endif | 272 #endif |
| 273 | 273 |
| 274 // Management. | 274 // Management. |
| 275 RegisterFunction<GetAllExtensionsFunction>(); | 275 RegisterFunction<GetAllExtensionsFunction>(); |
| 276 RegisterFunction<LaunchAppFunction>(); | |
| 277 RegisterFunction<SetEnabledFunction>(); | 276 RegisterFunction<SetEnabledFunction>(); |
| 277 RegisterFunction<InstallFunction>(); |
| 278 RegisterFunction<UninstallFunction>(); | 278 RegisterFunction<UninstallFunction>(); |
| 279 | 279 |
| 280 // WebstorePrivate. | 280 // WebstorePrivate. |
| 281 RegisterFunction<GetSyncLoginFunction>(); | 281 RegisterFunction<GetSyncLoginFunction>(); |
| 282 RegisterFunction<GetStoreLoginFunction>(); | 282 RegisterFunction<GetStoreLoginFunction>(); |
| 283 RegisterFunction<InstallFunction>(); | |
| 284 RegisterFunction<SetStoreLoginFunction>(); | 283 RegisterFunction<SetStoreLoginFunction>(); |
| 285 } | 284 } |
| 286 | 285 |
| 287 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 286 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
| 288 for (FactoryMap::iterator iter = factories_.begin(); | 287 for (FactoryMap::iterator iter = factories_.begin(); |
| 289 iter != factories_.end(); ++iter) { | 288 iter != factories_.end(); ++iter) { |
| 290 names->push_back(iter->first); | 289 names->push_back(iter->first); |
| 291 } | 290 } |
| 292 } | 291 } |
| 293 | 292 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 } else { | 490 } else { |
| 492 NOTREACHED(); | 491 NOTREACHED(); |
| 493 base::KillProcess(render_view_host_->process()->GetHandle(), | 492 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 494 ResultCodes::KILLED_BAD_MESSAGE, false); | 493 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 495 } | 494 } |
| 496 } | 495 } |
| 497 | 496 |
| 498 Profile* ExtensionFunctionDispatcher::profile() { | 497 Profile* ExtensionFunctionDispatcher::profile() { |
| 499 return profile_; | 498 return profile_; |
| 500 } | 499 } |
| OLD | NEW |