| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 factories_[tabs::kGetAllTabsInWindowFunction] = | 91 factories_[tabs::kGetAllTabsInWindowFunction] = |
| 92 &NewExtensionFunction<GetAllTabsInWindowFunction>; | 92 &NewExtensionFunction<GetAllTabsInWindowFunction>; |
| 93 factories_[tabs::kCreateTabFunction] = | 93 factories_[tabs::kCreateTabFunction] = |
| 94 &NewExtensionFunction<CreateTabFunction>; | 94 &NewExtensionFunction<CreateTabFunction>; |
| 95 factories_[tabs::kUpdateTabFunction] = | 95 factories_[tabs::kUpdateTabFunction] = |
| 96 &NewExtensionFunction<UpdateTabFunction>; | 96 &NewExtensionFunction<UpdateTabFunction>; |
| 97 factories_[tabs::kMoveTabFunction] = | 97 factories_[tabs::kMoveTabFunction] = |
| 98 &NewExtensionFunction<MoveTabFunction>; | 98 &NewExtensionFunction<MoveTabFunction>; |
| 99 factories_[tabs::kRemoveTabFunction] = | 99 factories_[tabs::kRemoveTabFunction] = |
| 100 &NewExtensionFunction<RemoveTabFunction>; | 100 &NewExtensionFunction<RemoveTabFunction>; |
| 101 factories_[tabs::kGetTabLanguageFunction] = |
| 102 &NewExtensionFunction<GetTabLanguageFunction>; |
| 101 | 103 |
| 102 // Page Actions. | 104 // Page Actions. |
| 103 factories_[page_actions::kEnablePageActionFunction] = | 105 factories_[page_actions::kEnablePageActionFunction] = |
| 104 &NewExtensionFunction<EnablePageActionFunction>; | 106 &NewExtensionFunction<EnablePageActionFunction>; |
| 105 factories_[page_actions::kDisablePageActionFunction] = | 107 factories_[page_actions::kDisablePageActionFunction] = |
| 106 &NewExtensionFunction<DisablePageActionFunction>; | 108 &NewExtensionFunction<DisablePageActionFunction>; |
| 107 | 109 |
| 108 // Bookmarks. | 110 // Bookmarks. |
| 109 factories_[bookmarks::kGetBookmarksFunction] = | 111 factories_[bookmarks::kGetBookmarksFunction] = |
| 110 &NewExtensionFunction<GetBookmarksFunction>; | 112 &NewExtensionFunction<GetBookmarksFunction>; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } else { | 230 } else { |
| 229 NOTREACHED(); | 231 NOTREACHED(); |
| 230 base::KillProcess(render_view_host_->process()->process().handle(), | 232 base::KillProcess(render_view_host_->process()->process().handle(), |
| 231 ResultCodes::KILLED_BAD_MESSAGE, false); | 233 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 232 } | 234 } |
| 233 } | 235 } |
| 234 | 236 |
| 235 Profile* ExtensionFunctionDispatcher::profile() { | 237 Profile* ExtensionFunctionDispatcher::profile() { |
| 236 return render_view_host_->process()->profile(); | 238 return render_view_host_->process()->profile(); |
| 237 } | 239 } |
| OLD | NEW |