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>(); |
276 RegisterFunction<SetEnabledFunction>(); | 277 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>(); |
283 RegisterFunction<SetStoreLoginFunction>(); | 284 RegisterFunction<SetStoreLoginFunction>(); |
284 } | 285 } |
285 | 286 |
286 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 287 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
287 for (FactoryMap::iterator iter = factories_.begin(); | 288 for (FactoryMap::iterator iter = factories_.begin(); |
288 iter != factories_.end(); ++iter) { | 289 iter != factories_.end(); ++iter) { |
289 names->push_back(iter->first); | 290 names->push_back(iter->first); |
290 } | 291 } |
291 } | 292 } |
292 | 293 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 } else { | 491 } else { |
491 NOTREACHED(); | 492 NOTREACHED(); |
492 base::KillProcess(render_view_host_->process()->GetHandle(), | 493 base::KillProcess(render_view_host_->process()->GetHandle(), |
493 ResultCodes::KILLED_BAD_MESSAGE, false); | 494 ResultCodes::KILLED_BAD_MESSAGE, false); |
494 } | 495 } |
495 } | 496 } |
496 | 497 |
497 Profile* ExtensionFunctionDispatcher::profile() { | 498 Profile* ExtensionFunctionDispatcher::profile() { |
498 return profile_; | 499 return profile_; |
499 } | 500 } |
OLD | NEW |