| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "AnimationController.h" | 10 #include "AnimationController.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "webkit/glue/dom_operations.h" | 32 #include "webkit/glue/dom_operations.h" |
| 33 #include "webkit/glue/dom_operations_private.h" | 33 #include "webkit/glue/dom_operations_private.h" |
| 34 #include "webkit/glue/form_data.h" | 34 #include "webkit/glue/form_data.h" |
| 35 #include "webkit/glue/glue_util.h" | 35 #include "webkit/glue/glue_util.h" |
| 36 #include "webkit/glue/password_autocomplete_listener.h" | 36 #include "webkit/glue/password_autocomplete_listener.h" |
| 37 #include "webkit/glue/webframe_impl.h" | 37 #include "webkit/glue/webframe_impl.h" |
| 38 #include "webkit/glue/webview_impl.h" | 38 #include "webkit/glue/webview_impl.h" |
| 39 | 39 |
| 40 using WebCore::String; | 40 using WebCore::String; |
| 41 using WebKit::WebFrame; | 41 using WebKit::WebFrame; |
| 42 using WebKit::WebView; |
| 42 | 43 |
| 43 namespace { | 44 namespace { |
| 44 | 45 |
| 45 // Structure for storage the unique set of all savable resource links for | 46 // Structure for storage the unique set of all savable resource links for |
| 46 // making sure that no duplicated resource link in final result. The consumer | 47 // making sure that no duplicated resource link in final result. The consumer |
| 47 // of the SavableResourcesUniqueCheck is responsible for keeping these pointers | 48 // of the SavableResourcesUniqueCheck is responsible for keeping these pointers |
| 48 // valid for the lifetime of the SavableResourcesUniqueCheck instance. | 49 // valid for the lifetime of the SavableResourcesUniqueCheck instance. |
| 49 struct SavableResourcesUniqueCheck { | 50 struct SavableResourcesUniqueCheck { |
| 50 // Unique set of all sub resource links. | 51 // Unique set of all sub resource links. |
| 51 std::set<GURL>* resources_set; | 52 std::set<GURL>* resources_set; |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 return static_cast<WebCore::HTMLInputElement*>(element); | 889 return static_cast<WebCore::HTMLInputElement*>(element); |
| 889 } | 890 } |
| 890 | 891 |
| 891 WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node) { | 892 WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node) { |
| 892 if (node->nodeType() != WebCore::Node::ELEMENT_NODE) | 893 if (node->nodeType() != WebCore::Node::ELEMENT_NODE) |
| 893 return NULL; | 894 return NULL; |
| 894 return ElementToHTMLInputElement(static_cast<WebCore::Element*>(node)); | 895 return ElementToHTMLInputElement(static_cast<WebCore::Element*>(node)); |
| 895 } | 896 } |
| 896 | 897 |
| 897 } // webkit_glue | 898 } // webkit_glue |
| OLD | NEW |