| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // Management. | 275 // Management. |
| 276 RegisterFunction<GetAllExtensionsFunction>(); | 276 RegisterFunction<GetAllExtensionsFunction>(); |
| 277 RegisterFunction<GetExtensionByIdFunction>(); | 277 RegisterFunction<GetExtensionByIdFunction>(); |
| 278 RegisterFunction<LaunchAppFunction>(); | 278 RegisterFunction<LaunchAppFunction>(); |
| 279 RegisterFunction<SetEnabledFunction>(); | 279 RegisterFunction<SetEnabledFunction>(); |
| 280 RegisterFunction<UninstallFunction>(); | 280 RegisterFunction<UninstallFunction>(); |
| 281 | 281 |
| 282 // WebstorePrivate. | 282 // WebstorePrivate. |
| 283 RegisterFunction<GetBrowserLoginFunction>(); | 283 RegisterFunction<GetBrowserLoginFunction>(); |
| 284 RegisterFunction<GetStoreLoginFunction>(); | 284 RegisterFunction<GetStoreLoginFunction>(); |
| 285 RegisterFunction<InstallFunction>(); | |
| 286 RegisterFunction<SetStoreLoginFunction>(); | 285 RegisterFunction<SetStoreLoginFunction>(); |
| 287 RegisterFunction<PromptBrowserLoginFunction>(); | 286 RegisterFunction<PromptBrowserLoginFunction>(); |
| 287 RegisterFunction<BeginInstallFunction>(); |
| 288 RegisterFunction<CompleteInstallFunction>(); |
| 288 } | 289 } |
| 289 | 290 |
| 290 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 291 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
| 291 for (FactoryMap::iterator iter = factories_.begin(); | 292 for (FactoryMap::iterator iter = factories_.begin(); |
| 292 iter != factories_.end(); ++iter) { | 293 iter != factories_.end(); ++iter) { |
| 293 names->push_back(iter->first); | 294 names->push_back(iter->first); |
| 294 } | 295 } |
| 295 } | 296 } |
| 296 | 297 |
| 297 bool FactoryRegistry::OverrideFunction(const std::string& name, | 298 bool FactoryRegistry::OverrideFunction(const std::string& name, |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 } else { | 489 } else { |
| 489 NOTREACHED(); | 490 NOTREACHED(); |
| 490 base::KillProcess(render_view_host_->process()->GetHandle(), | 491 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 491 ResultCodes::KILLED_BAD_MESSAGE, false); | 492 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 492 } | 493 } |
| 493 } | 494 } |
| 494 | 495 |
| 495 Profile* ExtensionFunctionDispatcher::profile() { | 496 Profile* ExtensionFunctionDispatcher::profile() { |
| 496 return profile_; | 497 return profile_; |
| 497 } | 498 } |
| OLD | NEW |