Chromium Code Reviews| 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<InstallFunction>(); | |
|
Erik does not do reviews
2010/11/09 16:32:21
shouldn't we remove this one?
asargent_no_longer_on_chrome
2010/11/10 00:23:48
Done.
| |
| 288 RegisterFunction<BeginInstallFunction>(); | |
| 289 RegisterFunction<CompleteInstallFunction>(); | |
| 288 } | 290 } |
| 289 | 291 |
| 290 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 292 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
| 291 for (FactoryMap::iterator iter = factories_.begin(); | 293 for (FactoryMap::iterator iter = factories_.begin(); |
| 292 iter != factories_.end(); ++iter) { | 294 iter != factories_.end(); ++iter) { |
| 293 names->push_back(iter->first); | 295 names->push_back(iter->first); |
| 294 } | 296 } |
| 295 } | 297 } |
| 296 | 298 |
| 297 bool FactoryRegistry::OverrideFunction(const std::string& name, | 299 bool FactoryRegistry::OverrideFunction(const std::string& name, |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 } else { | 490 } else { |
| 489 NOTREACHED(); | 491 NOTREACHED(); |
| 490 base::KillProcess(render_view_host_->process()->GetHandle(), | 492 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 491 ResultCodes::KILLED_BAD_MESSAGE, false); | 493 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 492 } | 494 } |
| 493 } | 495 } |
| 494 | 496 |
| 495 Profile* ExtensionFunctionDispatcher::profile() { | 497 Profile* ExtensionFunctionDispatcher::profile() { |
| 496 return profile_; | 498 return profile_; |
| 497 } | 499 } |
| OLD | NEW |