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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 3092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3103 WebFrame* frame, const WebString& name, const WebString& display_name, | 3103 WebFrame* frame, const WebString& name, const WebString& display_name, |
3104 unsigned long estimated_size) { | 3104 unsigned long estimated_size) { |
3105 WebSecurityOrigin origin = frame->securityOrigin(); | 3105 WebSecurityOrigin origin = frame->securityOrigin(); |
3106 if (origin.isEmpty()) | 3106 if (origin.isEmpty()) |
3107 return false; // Uninitialized document? | 3107 return false; // Uninitialized document? |
3108 | 3108 |
3109 bool result; | 3109 bool result; |
3110 if (!Send(new ViewHostMsg_AllowDatabase(routing_id_, | 3110 if (!Send(new ViewHostMsg_AllowDatabase(routing_id_, |
3111 origin.toString().utf8(), name, display_name, estimated_size, &result))) | 3111 origin.toString().utf8(), name, display_name, estimated_size, &result))) |
3112 return false; | 3112 return false; |
3113 if (!result) | 3113 Send(new ViewHostMsg_WebDatabaseAccessed(routing_id_, |
3114 DidBlockContentType(CONTENT_SETTINGS_TYPE_COOKIES); | 3114 GURL(origin.toString().utf8()), |
| 3115 name, |
| 3116 display_name, |
| 3117 estimated_size, |
| 3118 !result)); |
3115 return result; | 3119 return result; |
3116 } | 3120 } |
3117 void RenderView::didNotAllowScript(WebKit::WebFrame* frame) { | 3121 void RenderView::didNotAllowScript(WebKit::WebFrame* frame) { |
3118 DidBlockContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT); | 3122 DidBlockContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT); |
3119 } | 3123 } |
3120 | 3124 |
3121 void RenderView::didNotAllowPlugins(WebKit::WebFrame* frame) { | 3125 void RenderView::didNotAllowPlugins(WebKit::WebFrame* frame) { |
3122 DidBlockContentType(CONTENT_SETTINGS_TYPE_PLUGINS); | 3126 DidBlockContentType(CONTENT_SETTINGS_TYPE_PLUGINS); |
3123 } | 3127 } |
3124 | 3128 |
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5258 webkit_glue::FormData form; | 5262 webkit_glue::FormData form; |
5259 const WebInputElement element = node.toConst<WebInputElement>(); | 5263 const WebInputElement element = node.toConst<WebInputElement>(); |
5260 if (!form_manager_.FindFormWithFormControlElement( | 5264 if (!form_manager_.FindFormWithFormControlElement( |
5261 element, FormManager::REQUIRE_NONE, &form)) | 5265 element, FormManager::REQUIRE_NONE, &form)) |
5262 return; | 5266 return; |
5263 | 5267 |
5264 autofill_action_ = action; | 5268 autofill_action_ = action; |
5265 Send(new ViewHostMsg_FillAutoFillFormData( | 5269 Send(new ViewHostMsg_FillAutoFillFormData( |
5266 routing_id_, autofill_query_id_, form, value, label)); | 5270 routing_id_, autofill_query_id_, form, value, label)); |
5267 } | 5271 } |
OLD | NEW |