OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/string_piece.h" | 19 #include "base/string_piece.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/sys_string_conversions.h" | 21 #include "base/sys_string_conversions.h" |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "chrome/common/autofill_messages.h" |
25 #include "chrome/common/appcache/appcache_dispatcher.h" | 26 #include "chrome/common/appcache/appcache_dispatcher.h" |
26 #include "chrome/common/bindings_policy.h" | 27 #include "chrome/common/bindings_policy.h" |
27 #include "chrome/common/child_process_logging.h" | 28 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
29 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/database_messages.h" | 32 #include "chrome/common/database_messages.h" |
32 #include "chrome/common/extensions/extension.h" | 33 #include "chrome/common/extensions/extension.h" |
33 #include "chrome/common/file_system/file_system_dispatcher.h" | 34 #include "chrome/common/file_system/file_system_dispatcher.h" |
34 #include "chrome/common/file_system/webfilesystem_callback_dispatcher.h" | 35 #include "chrome/common/file_system/webfilesystem_callback_dispatcher.h" |
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3117 } | 3118 } |
3118 } | 3119 } |
3119 | 3120 |
3120 FormData form_data; | 3121 FormData form_data; |
3121 if (FormManager::WebFormElementToFormData( | 3122 if (FormManager::WebFormElementToFormData( |
3122 form, | 3123 form, |
3123 FormManager::REQUIRE_AUTOCOMPLETE, | 3124 FormManager::REQUIRE_AUTOCOMPLETE, |
3124 static_cast<FormManager::ExtractMask>(FormManager::EXTRACT_VALUE | | 3125 static_cast<FormManager::ExtractMask>(FormManager::EXTRACT_VALUE | |
3125 FormManager::EXTRACT_OPTION_TEXT), | 3126 FormManager::EXTRACT_OPTION_TEXT), |
3126 &form_data)) { | 3127 &form_data)) { |
3127 Send(new ViewHostMsg_FormSubmitted(routing_id_, form_data)); | 3128 Send(new AutoFillHostMsg_FormSubmitted(routing_id_, form_data)); |
3128 } | 3129 } |
3129 } | 3130 } |
3130 | 3131 |
3131 void RenderView::willPerformClientRedirect( | 3132 void RenderView::willPerformClientRedirect( |
3132 WebFrame* frame, const WebURL& from, const WebURL& to, double interval, | 3133 WebFrame* frame, const WebURL& from, const WebURL& to, double interval, |
3133 double fire_time) { | 3134 double fire_time) { |
3134 // Ignore | 3135 // Ignore |
3135 } | 3136 } |
3136 | 3137 |
3137 void RenderView::didCancelClientRedirect(WebFrame* frame) { | 3138 void RenderView::didCancelClientRedirect(WebFrame* frame) { |
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5750 if (cmd == kJavaScriptStressTestSetStressRunType) { | 5751 if (cmd == kJavaScriptStressTestSetStressRunType) { |
5751 v8::Testing::SetStressRunType(static_cast<v8::Testing::StressType>(param)); | 5752 v8::Testing::SetStressRunType(static_cast<v8::Testing::StressType>(param)); |
5752 } else if (cmd == kJavaScriptStressTestPrepareStressRun) { | 5753 } else if (cmd == kJavaScriptStressTestPrepareStressRun) { |
5753 v8::Testing::PrepareStressRun(param); | 5754 v8::Testing::PrepareStressRun(param); |
5754 } | 5755 } |
5755 } | 5756 } |
5756 | 5757 |
5757 void RenderView::OnContextMenuClosed() { | 5758 void RenderView::OnContextMenuClosed() { |
5758 context_menu_node_.reset(); | 5759 context_menu_node_.reset(); |
5759 } | 5760 } |
OLD | NEW |