OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 // We're in a middle of a reload. The FrameLoadType is propagated to its | 1724 // We're in a middle of a reload. The FrameLoadType is propagated to its |
1725 // children only if it is a ReloadBypassingCache, else it becomes a | 1725 // children only if it is a ReloadBypassingCache, else it becomes a |
1726 // standard load. | 1726 // standard load. |
1727 case kFrameLoadTypeReload: | 1727 case kFrameLoadTypeReload: |
1728 break; | 1728 break; |
1729 case kFrameLoadTypeReloadBypassingCache: | 1729 case kFrameLoadTypeReloadBypassingCache: |
1730 child_load_type = kFrameLoadTypeReloadBypassingCache; | 1730 child_load_type = kFrameLoadTypeReloadBypassingCache; |
1731 new_request.GetResourceRequest().SetCachePolicy( | 1731 new_request.GetResourceRequest().SetCachePolicy( |
1732 WebCachePolicy::kBypassingCache); | 1732 WebCachePolicy::kBypassingCache); |
1733 break; | 1733 break; |
| 1734 case kFrameLoadTypeCount: { |
| 1735 } |
1734 } | 1736 } |
1735 } | 1737 } |
1736 | 1738 |
1737 webframe_child->GetFrame()->Loader().Load(new_request, child_load_type, | 1739 webframe_child->GetFrame()->Loader().Load(new_request, child_load_type, |
1738 child_item); | 1740 child_item); |
1739 | 1741 |
1740 // Note a synchronous navigation (about:blank) would have already processed | 1742 // Note a synchronous navigation (about:blank) would have already processed |
1741 // onload, so it is possible for the child frame to have already been | 1743 // onload, so it is possible for the child frame to have already been |
1742 // detached by script in the page. | 1744 // detached by script in the page. |
1743 if (!webframe_child->Parent()) | 1745 if (!webframe_child->Parent()) |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2604 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2603 return *text_checker_client_; | 2605 return *text_checker_client_; |
2604 } | 2606 } |
2605 | 2607 |
2606 void WebLocalFrameImpl::SetTextCheckClient( | 2608 void WebLocalFrameImpl::SetTextCheckClient( |
2607 WebTextCheckClient* text_check_client) { | 2609 WebTextCheckClient* text_check_client) { |
2608 text_check_client_ = text_check_client; | 2610 text_check_client_ = text_check_client; |
2609 } | 2611 } |
2610 | 2612 |
2611 } // namespace blink | 2613 } // namespace blink |
OLD | NEW |