| OLD | NEW |
| 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 <map> | |
| 8 | |
| 9 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 10 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 11 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 12 #include "base/values.h" | 10 #include "base/values.h" |
| 13 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 14 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/browser_window.h" | 13 #include "chrome/browser/browser_window.h" |
| 16 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 17 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" | 15 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" |
| 18 #include "chrome/browser/external_protocol_handler.h" | 16 #include "chrome/browser/external_protocol_handler.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 RegisterFunction<SetCookieFunction>(); | 215 RegisterFunction<SetCookieFunction>(); |
| 218 RegisterFunction<RemoveCookieFunction>(); | 216 RegisterFunction<RemoveCookieFunction>(); |
| 219 RegisterFunction<GetAllCookieStoresFunction>(); | 217 RegisterFunction<GetAllCookieStoresFunction>(); |
| 220 | 218 |
| 221 // Test. | 219 // Test. |
| 222 RegisterFunction<ExtensionTestPassFunction>(); | 220 RegisterFunction<ExtensionTestPassFunction>(); |
| 223 RegisterFunction<ExtensionTestFailFunction>(); | 221 RegisterFunction<ExtensionTestFailFunction>(); |
| 224 RegisterFunction<ExtensionTestLogFunction>(); | 222 RegisterFunction<ExtensionTestLogFunction>(); |
| 225 RegisterFunction<ExtensionTestQuotaResetFunction>(); | 223 RegisterFunction<ExtensionTestQuotaResetFunction>(); |
| 226 RegisterFunction<ExtensionTestCreateIncognitoTabFunction>(); | 224 RegisterFunction<ExtensionTestCreateIncognitoTabFunction>(); |
| 227 RegisterFunction<ExtensionTestSendMessageFunction>(); | |
| 228 | 225 |
| 229 // Accessibility. | 226 // Accessibility. |
| 230 RegisterFunction<GetFocusedControlFunction>(); | 227 RegisterFunction<GetFocusedControlFunction>(); |
| 231 RegisterFunction<SetAccessibilityEnabledFunction>(); | 228 RegisterFunction<SetAccessibilityEnabledFunction>(); |
| 232 | 229 |
| 233 // Clipboard. | 230 // Clipboard. |
| 234 RegisterFunction<ExecuteCopyClipboardFunction>(); | 231 RegisterFunction<ExecuteCopyClipboardFunction>(); |
| 235 RegisterFunction<ExecuteCutClipboardFunction>(); | 232 RegisterFunction<ExecuteCutClipboardFunction>(); |
| 236 RegisterFunction<ExecutePasteClipboardFunction>(); | 233 RegisterFunction<ExecutePasteClipboardFunction>(); |
| 237 | 234 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 } else { | 439 } else { |
| 443 NOTREACHED(); | 440 NOTREACHED(); |
| 444 base::KillProcess(render_view_host_->process()->GetHandle(), | 441 base::KillProcess(render_view_host_->process()->GetHandle(), |
| 445 ResultCodes::KILLED_BAD_MESSAGE, false); | 442 ResultCodes::KILLED_BAD_MESSAGE, false); |
| 446 } | 443 } |
| 447 } | 444 } |
| 448 | 445 |
| 449 Profile* ExtensionFunctionDispatcher::profile() { | 446 Profile* ExtensionFunctionDispatcher::profile() { |
| 450 return profile_; | 447 return profile_; |
| 451 } | 448 } |
| OLD | NEW |