| 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/execute_code_in_tab_function.h" | 10 #include "chrome/browser/extensions/execute_code_in_tab_function.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 RegisterFunction<MoveTabFunction>(); | 94 RegisterFunction<MoveTabFunction>(); |
| 95 RegisterFunction<RemoveTabFunction>(); | 95 RegisterFunction<RemoveTabFunction>(); |
| 96 RegisterFunction<DetectTabLanguageFunction>(); | 96 RegisterFunction<DetectTabLanguageFunction>(); |
| 97 RegisterFunction<CaptureVisibleTabFunction>(); | 97 RegisterFunction<CaptureVisibleTabFunction>(); |
| 98 RegisterFunction<TabsExecuteScriptFunction>(); | 98 RegisterFunction<TabsExecuteScriptFunction>(); |
| 99 RegisterFunction<TabsInsertCSSFunction>(); | 99 RegisterFunction<TabsInsertCSSFunction>(); |
| 100 | 100 |
| 101 // Page Actions. | 101 // Page Actions. |
| 102 RegisterFunction<EnablePageActionFunction>(); | 102 RegisterFunction<EnablePageActionFunction>(); |
| 103 RegisterFunction<DisablePageActionFunction>(); | 103 RegisterFunction<DisablePageActionFunction>(); |
| 104 RegisterFunction<PageActionShowFunction>(); |
| 105 RegisterFunction<PageActionHideFunction>(); |
| 106 RegisterFunction<PageActionSetIconFunction>(); |
| 107 RegisterFunction<PageActionSetTitleFunction>(); |
| 108 RegisterFunction<PageActionSetBadgeBackgroundColorFunction>(); |
| 109 RegisterFunction<PageActionSetBadgeTextColorFunction>(); |
| 110 RegisterFunction<PageActionSetBadgeTextFunction>(); |
| 104 | 111 |
| 105 // Browser Actions. | 112 // Browser Actions. |
| 106 RegisterFunction<BrowserActionSetIconFunction>(); | 113 RegisterFunction<BrowserActionSetIconFunction>(); |
| 107 RegisterFunction<BrowserActionSetTitleFunction>(); | 114 RegisterFunction<BrowserActionSetTitleFunction>(); |
| 108 RegisterFunction<BrowserActionSetBadgeTextFunction>(); | 115 RegisterFunction<BrowserActionSetBadgeTextFunction>(); |
| 109 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); | 116 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); |
| 110 | 117 |
| 111 // Bookmarks. | 118 // Bookmarks. |
| 112 RegisterFunction<GetBookmarksFunction>(); | 119 RegisterFunction<GetBookmarksFunction>(); |
| 113 RegisterFunction<GetBookmarkChildrenFunction>(); | 120 RegisterFunction<GetBookmarkChildrenFunction>(); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 } else { | 272 } else { |
| 266 NOTREACHED(); | 273 NOTREACHED(); |
| 267 base::KillProcess(render_view_host_->process()->process().handle(), | 274 base::KillProcess(render_view_host_->process()->process().handle(), |
| 268 ResultCodes::KILLED_BAD_MESSAGE, false); | 275 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 269 } | 276 } |
| 270 } | 277 } |
| 271 | 278 |
| 272 Profile* ExtensionFunctionDispatcher::profile() { | 279 Profile* ExtensionFunctionDispatcher::profile() { |
| 273 return render_view_host_->process()->profile(); | 280 return render_view_host_->process()->profile(); |
| 274 } | 281 } |
| OLD | NEW |