| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Tabs | 123 // Tabs |
| 124 RegisterFunction<GetTabFunction>(); | 124 RegisterFunction<GetTabFunction>(); |
| 125 RegisterFunction<GetCurrentTabFunction>(); | 125 RegisterFunction<GetCurrentTabFunction>(); |
| 126 RegisterFunction<GetSelectedTabFunction>(); | 126 RegisterFunction<GetSelectedTabFunction>(); |
| 127 RegisterFunction<GetAllTabsInWindowFunction>(); | 127 RegisterFunction<GetAllTabsInWindowFunction>(); |
| 128 RegisterFunction<CreateTabFunction>(); | 128 RegisterFunction<CreateTabFunction>(); |
| 129 RegisterFunction<UpdateTabFunction>(); | 129 RegisterFunction<UpdateTabFunction>(); |
| 130 RegisterFunction<MoveTabFunction>(); | 130 RegisterFunction<MoveTabFunction>(); |
| 131 RegisterFunction<RemoveTabFunction>(); | 131 RegisterFunction<RemoveTabFunction>(); |
| 132 RegisterFunction<SetZoomPercentTabFunction>(); |
| 133 RegisterFunction<GetZoomPercentTabFunction>(); |
| 132 RegisterFunction<DetectTabLanguageFunction>(); | 134 RegisterFunction<DetectTabLanguageFunction>(); |
| 133 RegisterFunction<CaptureVisibleTabFunction>(); | 135 RegisterFunction<CaptureVisibleTabFunction>(); |
| 134 RegisterFunction<TabsExecuteScriptFunction>(); | 136 RegisterFunction<TabsExecuteScriptFunction>(); |
| 135 RegisterFunction<TabsInsertCSSFunction>(); | 137 RegisterFunction<TabsInsertCSSFunction>(); |
| 136 | 138 |
| 137 // Page Actions. | 139 // Page Actions. |
| 138 RegisterFunction<EnablePageActionFunction>(); | 140 RegisterFunction<EnablePageActionFunction>(); |
| 139 RegisterFunction<DisablePageActionFunction>(); | 141 RegisterFunction<DisablePageActionFunction>(); |
| 140 RegisterFunction<PageActionShowFunction>(); | 142 RegisterFunction<PageActionShowFunction>(); |
| 141 RegisterFunction<PageActionHideFunction>(); | 143 RegisterFunction<PageActionHideFunction>(); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 NOTREACHED(); | 503 NOTREACHED(); |
| 502 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); | 504 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); |
| 503 base::KillProcess(render_view_host_->process()->GetHandle(), | 505 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 504 ResultCodes::KILLED_BAD_MESSAGE, false); | 506 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 505 } | 507 } |
| 506 } | 508 } |
| 507 | 509 |
| 508 Profile* ExtensionFunctionDispatcher::profile() { | 510 Profile* ExtensionFunctionDispatcher::profile() { |
| 509 return profile_; | 511 return profile_; |
| 510 } | 512 } |
| OLD | NEW |