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

Unified Diff: chrome/renderer/safe_browsing/render_view_fake_resources_test.cc

Issue 6398001: Run pre-classification checks in the browser before starting client-side phishing detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Noe's review comments Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/safe_browsing/render_view_fake_resources_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/safe_browsing/render_view_fake_resources_test.cc
diff --git a/chrome/renderer/safe_browsing/render_view_fake_resources_test.cc b/chrome/renderer/safe_browsing/render_view_fake_resources_test.cc
index 94ed7a68c51a6032a6d6b26dc7776340769d5440..9fd9a7dac4c5d3db0f3ba2beeb862e37c183a7bf 100644
--- a/chrome/renderer/safe_browsing/render_view_fake_resources_test.cc
+++ b/chrome/renderer/safe_browsing/render_view_fake_resources_test.cc
@@ -24,6 +24,7 @@
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request_status.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
@@ -125,6 +126,12 @@ void RenderViewFakeResourcesTest::LoadURLWithPost(const std::string& url) {
message_loop_.Run();
}
+void RenderViewFakeResourcesTest::GoBack() {
+ WebKit::WebFrame* frame = GetMainFrame();
+ frame->loadHistoryItem(frame->previousHistoryItem());
+ message_loop_.Run();
+}
+
void RenderViewFakeResourcesTest::OnDidStopLoading() {
message_loop_.Quit();
}
« no previous file with comments | « chrome/renderer/safe_browsing/render_view_fake_resources_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698