| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 RegisterFunction<RemoveContextMenuFunction>(); | 256 RegisterFunction<RemoveContextMenuFunction>(); |
| 257 RegisterFunction<RemoveAllContextMenusFunction>(); | 257 RegisterFunction<RemoveAllContextMenusFunction>(); |
| 258 | 258 |
| 259 // Omnibox. | 259 // Omnibox. |
| 260 RegisterFunction<OmniboxSendSuggestionsFunction>(); | 260 RegisterFunction<OmniboxSendSuggestionsFunction>(); |
| 261 RegisterFunction<OmniboxSetDefaultSuggestionFunction>(); | 261 RegisterFunction<OmniboxSetDefaultSuggestionFunction>(); |
| 262 | 262 |
| 263 // Proxies. | 263 // Proxies. |
| 264 RegisterFunction<UseCustomProxySettingsFunction>(); | 264 RegisterFunction<UseCustomProxySettingsFunction>(); |
| 265 RegisterFunction<RemoveCustomProxySettingsFunction>(); | 265 RegisterFunction<RemoveCustomProxySettingsFunction>(); |
| 266 RegisterFunction<GetCurrentProxySettingsFunction>(); |
| 266 | 267 |
| 267 // Sidebar. | 268 // Sidebar. |
| 268 RegisterFunction<CollapseSidebarFunction>(); | 269 RegisterFunction<CollapseSidebarFunction>(); |
| 269 RegisterFunction<ExpandSidebarFunction>(); | 270 RegisterFunction<ExpandSidebarFunction>(); |
| 270 RegisterFunction<GetStateSidebarFunction>(); | 271 RegisterFunction<GetStateSidebarFunction>(); |
| 271 RegisterFunction<HideSidebarFunction>(); | 272 RegisterFunction<HideSidebarFunction>(); |
| 272 RegisterFunction<NavigateSidebarFunction>(); | 273 RegisterFunction<NavigateSidebarFunction>(); |
| 273 RegisterFunction<SetBadgeTextSidebarFunction>(); | 274 RegisterFunction<SetBadgeTextSidebarFunction>(); |
| 274 RegisterFunction<SetIconSidebarFunction>(); | 275 RegisterFunction<SetIconSidebarFunction>(); |
| 275 RegisterFunction<SetTitleSidebarFunction>(); | 276 RegisterFunction<SetTitleSidebarFunction>(); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 NOTREACHED(); | 498 NOTREACHED(); |
| 498 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); | 499 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); |
| 499 base::KillProcess(render_view_host_->process()->GetHandle(), | 500 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 500 ResultCodes::KILLED_BAD_MESSAGE, false); | 501 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 501 } | 502 } |
| 502 } | 503 } |
| 503 | 504 |
| 504 Profile* ExtensionFunctionDispatcher::profile() { | 505 Profile* ExtensionFunctionDispatcher::profile() { |
| 505 return profile_; | 506 return profile_; |
| 506 } | 507 } |
| OLD | NEW |