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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 104 |
105 // Browser Actions. | 105 // Browser Actions. |
106 RegisterFunction<BrowserActionSetNameFunction>(); | |
107 RegisterFunction<BrowserActionSetIconFunction>(); | 106 RegisterFunction<BrowserActionSetIconFunction>(); |
| 107 RegisterFunction<BrowserActionSetTitleFunction>(); |
108 RegisterFunction<BrowserActionSetBadgeTextFunction>(); | 108 RegisterFunction<BrowserActionSetBadgeTextFunction>(); |
109 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); | 109 RegisterFunction<BrowserActionSetBadgeBackgroundColorFunction>(); |
110 | 110 |
111 // Bookmarks. | 111 // Bookmarks. |
112 RegisterFunction<GetBookmarksFunction>(); | 112 RegisterFunction<GetBookmarksFunction>(); |
113 RegisterFunction<GetBookmarkChildrenFunction>(); | 113 RegisterFunction<GetBookmarkChildrenFunction>(); |
114 RegisterFunction<GetBookmarkTreeFunction>(); | 114 RegisterFunction<GetBookmarkTreeFunction>(); |
115 RegisterFunction<SearchBookmarksFunction>(); | 115 RegisterFunction<SearchBookmarksFunction>(); |
116 RegisterFunction<RemoveBookmarkFunction>(); | 116 RegisterFunction<RemoveBookmarkFunction>(); |
117 RegisterFunction<RemoveTreeBookmarkFunction>(); | 117 RegisterFunction<RemoveTreeBookmarkFunction>(); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } else { | 265 } else { |
266 NOTREACHED(); | 266 NOTREACHED(); |
267 base::KillProcess(render_view_host_->process()->process().handle(), | 267 base::KillProcess(render_view_host_->process()->process().handle(), |
268 ResultCodes::KILLED_BAD_MESSAGE, false); | 268 ResultCodes::KILLED_BAD_MESSAGE, false); |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 Profile* ExtensionFunctionDispatcher::profile() { | 272 Profile* ExtensionFunctionDispatcher::profile() { |
273 return render_view_host_->process()->profile(); | 273 return render_view_host_->process()->profile(); |
274 } | 274 } |
OLD | NEW |