| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/extension_bookmarks_module.h" | 10 #include "chrome/browser/extensions/extension_bookmarks_module.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 factories_[tabs::kCreateTabFunction] = | 98 factories_[tabs::kCreateTabFunction] = |
| 99 &NewExtensionFunction<CreateTabFunction>; | 99 &NewExtensionFunction<CreateTabFunction>; |
| 100 factories_[tabs::kUpdateTabFunction] = | 100 factories_[tabs::kUpdateTabFunction] = |
| 101 &NewExtensionFunction<UpdateTabFunction>; | 101 &NewExtensionFunction<UpdateTabFunction>; |
| 102 factories_[tabs::kMoveTabFunction] = | 102 factories_[tabs::kMoveTabFunction] = |
| 103 &NewExtensionFunction<MoveTabFunction>; | 103 &NewExtensionFunction<MoveTabFunction>; |
| 104 factories_[tabs::kRemoveTabFunction] = | 104 factories_[tabs::kRemoveTabFunction] = |
| 105 &NewExtensionFunction<RemoveTabFunction>; | 105 &NewExtensionFunction<RemoveTabFunction>; |
| 106 factories_[tabs::kDetectTabLanguageFunction] = | 106 factories_[tabs::kDetectTabLanguageFunction] = |
| 107 &NewExtensionFunction<DetectTabLanguageFunction>; | 107 &NewExtensionFunction<DetectTabLanguageFunction>; |
| 108 factories_[tabs::kCaptureVisibleTabFunction] = |
| 109 &NewExtensionFunction<CaptureVisibleTabFunction>; |
| 108 | 110 |
| 109 // Page Actions. | 111 // Page Actions. |
| 110 factories_[page_actions::kEnablePageActionFunction] = | 112 factories_[page_actions::kEnablePageActionFunction] = |
| 111 &NewExtensionFunction<EnablePageActionFunction>; | 113 &NewExtensionFunction<EnablePageActionFunction>; |
| 112 factories_[page_actions::kDisablePageActionFunction] = | 114 factories_[page_actions::kDisablePageActionFunction] = |
| 113 &NewExtensionFunction<DisablePageActionFunction>; | 115 &NewExtensionFunction<DisablePageActionFunction>; |
| 114 | 116 |
| 115 // Bookmarks. | 117 // Bookmarks. |
| 116 factories_[bookmarks::kGetBookmarksFunction] = | 118 factories_[bookmarks::kGetBookmarksFunction] = |
| 117 &NewExtensionFunction<GetBookmarksFunction>; | 119 &NewExtensionFunction<GetBookmarksFunction>; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } else { | 265 } else { |
| 264 NOTREACHED(); | 266 NOTREACHED(); |
| 265 base::KillProcess(render_view_host_->process()->process().handle(), | 267 base::KillProcess(render_view_host_->process()->process().handle(), |
| 266 ResultCodes::KILLED_BAD_MESSAGE, false); | 268 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 267 } | 269 } |
| 268 } | 270 } |
| 269 | 271 |
| 270 Profile* ExtensionFunctionDispatcher::profile() { | 272 Profile* ExtensionFunctionDispatcher::profile() { |
| 271 return render_view_host_->process()->profile(); | 273 return render_view_host_->process()->profile(); |
| 272 } | 274 } |
| OLD | NEW |