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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 NOTREACHED(); | 502 NOTREACHED(); |
502 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); | 503 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); |
503 base::KillProcess(render_view_host_->process()->GetHandle(), | 504 base::KillProcess(render_view_host_->process()->GetHandle(), |
504 ResultCodes::KILLED_BAD_MESSAGE, false); | 505 ResultCodes::KILLED_BAD_MESSAGE, false); |
505 } | 506 } |
506 } | 507 } |
507 | 508 |
508 Profile* ExtensionFunctionDispatcher::profile() { | 509 Profile* ExtensionFunctionDispatcher::profile() { |
509 return profile_; | 510 return profile_; |
510 } | 511 } |
OLD | NEW |