| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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>(); | 104 RegisterFunction<PageActionShowFunction>(); |
| 105 RegisterFunction<PageActionHideFunction>(); | 105 RegisterFunction<PageActionHideFunction>(); |
| 106 RegisterFunction<PageActionSetIconFunction>(); | 106 RegisterFunction<PageActionSetIconFunction>(); |
| 107 RegisterFunction<PageActionSetTitleFunction>(); | 107 RegisterFunction<PageActionSetTitleFunction>(); |
| 108 RegisterFunction<PageActionSetBadgeBackgroundColorFunction>(); | |
| 109 RegisterFunction<PageActionSetBadgeTextColorFunction>(); | |
| 110 RegisterFunction<PageActionSetBadgeTextFunction>(); | |
| 111 | 108 |
| 112 // Browser Actions. | 109 // Browser Actions. |
| 113 RegisterFunction<BrowserActionSetIconFunction>(); | 110 RegisterFunction<BrowserActionSetIconFunction>(); |
| 114 RegisterFunction<BrowserActionSetTitleFunction>(); | 111 RegisterFunction<BrowserActionSetTitleFunction>(); |
| 115 RegisterFunction<BrowserActionSetBadgeTextFunction>(); | 112 RegisterFunction<BrowserActionSetBadgeTextFunction>(); |
| 116 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); | 113 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); |
| 117 | 114 |
| 118 // Bookmarks. | 115 // Bookmarks. |
| 119 RegisterFunction<GetBookmarksFunction>(); | 116 RegisterFunction<GetBookmarksFunction>(); |
| 120 RegisterFunction<GetBookmarkChildrenFunction>(); | 117 RegisterFunction<GetBookmarkChildrenFunction>(); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } else { | 269 } else { |
| 273 NOTREACHED(); | 270 NOTREACHED(); |
| 274 base::KillProcess(render_view_host_->process()->process().handle(), | 271 base::KillProcess(render_view_host_->process()->process().handle(), |
| 275 ResultCodes::KILLED_BAD_MESSAGE, false); | 272 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 276 } | 273 } |
| 277 } | 274 } |
| 278 | 275 |
| 279 Profile* ExtensionFunctionDispatcher::profile() { | 276 Profile* ExtensionFunctionDispatcher::profile() { |
| 280 return render_view_host_->process()->profile(); | 277 return render_view_host_->process()->profile(); |
| 281 } | 278 } |
| OLD | NEW |