Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/extensions/extension_context_menu_api.h" 23 #include "chrome/browser/extensions/extension_context_menu_api.h"
24 #include "chrome/browser/extensions/extension_cookies_api.h" 24 #include "chrome/browser/extensions/extension_cookies_api.h"
25 #include "chrome/browser/extensions/extension_dom_ui.h" 25 #include "chrome/browser/extensions/extension_dom_ui.h"
26 #include "chrome/browser/extensions/extension_function.h" 26 #include "chrome/browser/extensions/extension_function.h"
27 #include "chrome/browser/extensions/extension_history_api.h" 27 #include "chrome/browser/extensions/extension_history_api.h"
28 #include "chrome/browser/extensions/extension_idle_api.h" 28 #include "chrome/browser/extensions/extension_idle_api.h"
29 #include "chrome/browser/extensions/extension_i18n_api.h" 29 #include "chrome/browser/extensions/extension_i18n_api.h"
30 #include "chrome/browser/extensions/extension_infobar_module.h" 30 #include "chrome/browser/extensions/extension_infobar_module.h"
31 #include "chrome/browser/extensions/extension_message_service.h" 31 #include "chrome/browser/extensions/extension_message_service.h"
32 #include "chrome/browser/extensions/extension_metrics_module.h" 32 #include "chrome/browser/extensions/extension_metrics_module.h"
33 #include "chrome/browser/extensions/extension_omnibox_api.h"
33 #include "chrome/browser/extensions/extension_page_actions_module.h" 34 #include "chrome/browser/extensions/extension_page_actions_module.h"
34 #include "chrome/browser/extensions/extension_page_actions_module_constants.h" 35 #include "chrome/browser/extensions/extension_page_actions_module_constants.h"
35 #include "chrome/browser/extensions/extension_popup_api.h" 36 #include "chrome/browser/extensions/extension_popup_api.h"
36 #include "chrome/browser/extensions/extension_process_manager.h" 37 #include "chrome/browser/extensions/extension_process_manager.h"
37 #include "chrome/browser/extensions/extension_processes_api.h" 38 #include "chrome/browser/extensions/extension_processes_api.h"
38 #include "chrome/browser/extensions/extension_tabs_module.h" 39 #include "chrome/browser/extensions/extension_tabs_module.h"
39 #include "chrome/browser/extensions/extension_tabs_module_constants.h" 40 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
40 #include "chrome/browser/extensions/extension_test_api.h" 41 #include "chrome/browser/extensions/extension_test_api.h"
41 #include "chrome/browser/extensions/extension_toolstrip_api.h" 42 #include "chrome/browser/extensions/extension_toolstrip_api.h"
42 #include "chrome/browser/extensions/extensions_quota_service.h" 43 #include "chrome/browser/extensions/extensions_quota_service.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // Clipboard. 220 // Clipboard.
220 RegisterFunction<ExecuteCopyClipboardFunction>(); 221 RegisterFunction<ExecuteCopyClipboardFunction>();
221 RegisterFunction<ExecuteCutClipboardFunction>(); 222 RegisterFunction<ExecuteCutClipboardFunction>();
222 RegisterFunction<ExecutePasteClipboardFunction>(); 223 RegisterFunction<ExecutePasteClipboardFunction>();
223 224
224 // Context Menus. 225 // Context Menus.
225 RegisterFunction<CreateContextMenuFunction>(); 226 RegisterFunction<CreateContextMenuFunction>();
226 RegisterFunction<UpdateContextMenuFunction>(); 227 RegisterFunction<UpdateContextMenuFunction>();
227 RegisterFunction<RemoveContextMenuFunction>(); 228 RegisterFunction<RemoveContextMenuFunction>();
228 RegisterFunction<RemoveAllContextMenusFunction>(); 229 RegisterFunction<RemoveAllContextMenusFunction>();
230
231 // Omnibox.
232 RegisterFunction<OmniboxSendSuggestionsFunction>();
229 } 233 }
230 234
231 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 235 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
232 for (FactoryMap::iterator iter = factories_.begin(); 236 for (FactoryMap::iterator iter = factories_.begin();
233 iter != factories_.end(); ++iter) { 237 iter != factories_.end(); ++iter) {
234 names->push_back(iter->first); 238 names->push_back(iter->first);
235 } 239 }
236 } 240 }
237 241
238 bool FactoryRegistry::OverrideFunction(const std::string& name, 242 bool FactoryRegistry::OverrideFunction(const std::string& name,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } else { 426 } else {
423 NOTREACHED(); 427 NOTREACHED();
424 base::KillProcess(render_view_host_->process()->GetHandle(), 428 base::KillProcess(render_view_host_->process()->GetHandle(),
425 ResultCodes::KILLED_BAD_MESSAGE, false); 429 ResultCodes::KILLED_BAD_MESSAGE, false);
426 } 430 }
427 } 431 }
428 432
429 Profile* ExtensionFunctionDispatcher::profile() { 433 Profile* ExtensionFunctionDispatcher::profile() {
430 return profile_; 434 return profile_;
431 } 435 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/location_bar_view_mac_unittest.mm ('k') | chrome/browser/extensions/extension_message_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698