| 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 // This file contains the implementation of TestWebViewDelegate, which serves | 5 // This file contains the implementation of TestWebViewDelegate, which serves |
| 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to | 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to |
| 7 // have initialized a MessageLoop before these methods are called. | 7 // have initialized a MessageLoop before these methods are called. |
| 8 | 8 |
| 9 #include "config.h" | 9 #include "config.h" |
| 10 | 10 |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 GetErrorDescription(error).c_str()); | 888 GetErrorDescription(error).c_str()); |
| 889 } | 889 } |
| 890 resource_identifier_map_.erase(identifier); | 890 resource_identifier_map_.erase(identifier); |
| 891 } | 891 } |
| 892 | 892 |
| 893 void TestWebViewDelegate::didLoadResourceFromMemoryCache( | 893 void TestWebViewDelegate::didLoadResourceFromMemoryCache( |
| 894 WebFrame* frame, const WebURLRequest&, | 894 WebFrame* frame, const WebURLRequest&, |
| 895 const WebURLResponse&) { | 895 const WebURLResponse&) { |
| 896 } | 896 } |
| 897 | 897 |
| 898 void TestWebViewDelegate::didDisplayInsecureContent(WebFrame* frame) { |
| 899 if (shell_->ShouldDumpFrameLoadCallbacks()) |
| 900 printf("didDisplayInsecureContent\n"); |
| 901 } |
| 902 |
| 903 void TestWebViewDelegate::didRunInsecureContent( |
| 904 WebFrame* frame, const WebString& security_origin) { |
| 905 if (shell_->ShouldDumpFrameLoadCallbacks()) |
| 906 printf("didRunInsecureContent\n"); |
| 907 } |
| 908 |
| 898 void TestWebViewDelegate::didExhaustMemoryAvailableForScript(WebFrame* frame) { | 909 void TestWebViewDelegate::didExhaustMemoryAvailableForScript(WebFrame* frame) { |
| 899 } | 910 } |
| 900 | 911 |
| 901 void TestWebViewDelegate::didChangeContentsSize( | 912 void TestWebViewDelegate::didChangeContentsSize( |
| 902 WebFrame* frame, const WebSize&) { | 913 WebFrame* frame, const WebSize&) { |
| 903 } | 914 } |
| 904 | 915 |
| 905 | 916 |
| 906 // Public methods ------------------------------------------------------------ | 917 // Public methods ------------------------------------------------------------ |
| 907 | 918 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 return L"main frame \"" + name + L"\""; | 1097 return L"main frame \"" + name + L"\""; |
| 1087 else | 1098 else |
| 1088 return L"main frame"; | 1099 return L"main frame"; |
| 1089 } else { | 1100 } else { |
| 1090 if (name.length()) | 1101 if (name.length()) |
| 1091 return L"frame \"" + name + L"\""; | 1102 return L"frame \"" + name + L"\""; |
| 1092 else | 1103 else |
| 1093 return L"frame (anonymous)"; | 1104 return L"frame (anonymous)"; |
| 1094 } | 1105 } |
| 1095 } | 1106 } |
| OLD | NEW |