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/json_reader.h" | 7 #include "base/json_reader.h" |
8 #include "base/json_writer.h" | 8 #include "base/json_writer.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
(...skipping 45 matching lines...) Loading... |
56 factories_["GetTabsForWindow"] = | 56 factories_["GetTabsForWindow"] = |
57 &NewExtensionFunction<GetTabsForWindowFunction>; | 57 &NewExtensionFunction<GetTabsForWindowFunction>; |
58 factories_["GetTab"] = &NewExtensionFunction<GetTabFunction>; | 58 factories_["GetTab"] = &NewExtensionFunction<GetTabFunction>; |
59 factories_["CreateTab"] = &NewExtensionFunction<CreateTabFunction>; | 59 factories_["CreateTab"] = &NewExtensionFunction<CreateTabFunction>; |
60 factories_["UpdateTab"] = &NewExtensionFunction<UpdateTabFunction>; | 60 factories_["UpdateTab"] = &NewExtensionFunction<UpdateTabFunction>; |
61 factories_["MoveTab"] = &NewExtensionFunction<MoveTabFunction>; | 61 factories_["MoveTab"] = &NewExtensionFunction<MoveTabFunction>; |
62 factories_["RemoveTab"] = &NewExtensionFunction<RemoveTabFunction>; | 62 factories_["RemoveTab"] = &NewExtensionFunction<RemoveTabFunction>; |
63 | 63 |
64 // Bookmarks | 64 // Bookmarks |
65 factories_["GetBookmarks"] = &NewExtensionFunction<GetBookmarksFunction>; | 65 factories_["GetBookmarks"] = &NewExtensionFunction<GetBookmarksFunction>; |
| 66 factories_["GetBookmarkChildren"] = |
| 67 &NewExtensionFunction<GetBookmarkChildrenFunction>; |
| 68 factories_["GetBookmarkTree"] = |
| 69 &NewExtensionFunction<GetBookmarkTreeFunction>; |
66 factories_["SearchBookmarks"] = | 70 factories_["SearchBookmarks"] = |
67 &NewExtensionFunction<SearchBookmarksFunction>; | 71 &NewExtensionFunction<SearchBookmarksFunction>; |
68 factories_["RemoveBookmark"] = &NewExtensionFunction<RemoveBookmarkFunction>; | 72 factories_["RemoveBookmark"] = &NewExtensionFunction<RemoveBookmarkFunction>; |
69 factories_["CreateBookmark"] = &NewExtensionFunction<CreateBookmarkFunction>; | 73 factories_["CreateBookmark"] = &NewExtensionFunction<CreateBookmarkFunction>; |
70 factories_["MoveBookmark"] = &NewExtensionFunction<MoveBookmarkFunction>; | 74 factories_["MoveBookmark"] = &NewExtensionFunction<MoveBookmarkFunction>; |
71 factories_["SetBookmarkTitle"] = | 75 factories_["SetBookmarkTitle"] = |
72 &NewExtensionFunction<SetBookmarkTitleFunction>; | 76 &NewExtensionFunction<SetBookmarkTitleFunction>; |
73 } | 77 } |
74 | 78 |
75 void FactoryRegistry::GetAllNames( | 79 void FactoryRegistry::GetAllNames( |
(...skipping 74 matching lines...) Loading... |
150 } else { | 154 } else { |
151 NOTREACHED(); | 155 NOTREACHED(); |
152 base::KillProcess(render_view_host_->process()->process().handle(), | 156 base::KillProcess(render_view_host_->process()->process().handle(), |
153 ResultCodes::KILLED_BAD_MESSAGE, false); | 157 ResultCodes::KILLED_BAD_MESSAGE, false); |
154 } | 158 } |
155 } | 159 } |
156 | 160 |
157 Profile* ExtensionFunctionDispatcher::profile() { | 161 Profile* ExtensionFunctionDispatcher::profile() { |
158 return render_view_host_->process()->profile(); | 162 return render_view_host_->process()->profile(); |
159 } | 163 } |
OLD | NEW |