Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 200110: Fix some mixed content layout tests.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« webkit/glue/empty_webframeclient.h ('K') | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698