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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hiroshige review Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 frame->loadRequest(urlRequest); 120 frame->loadRequest(urlRequest);
121 pumpPendingRequestsForFrameToLoad(frame); 121 pumpPendingRequestsForFrameToLoad(frame);
122 } 122 }
123 123
124 void loadHTMLString(WebFrame* frame, const std::string& html, const WebURL& base URL) 124 void loadHTMLString(WebFrame* frame, const std::string& html, const WebURL& base URL)
125 { 125 {
126 frame->loadHTMLString(WebData(html.data(), html.size()), baseURL); 126 frame->loadHTMLString(WebData(html.data(), html.size()), baseURL);
127 pumpPendingRequestsForFrameToLoad(frame); 127 pumpPendingRequestsForFrameToLoad(frame);
128 } 128 }
129 129
130 void loadHistoryItem(WebFrame* frame, const WebHistoryItem& item, WebHistoryLoad Type loadType, WebURLRequest::CachePolicy cachePolicy) 130 void loadHistoryItem(WebFrame* frame, const WebHistoryItem& item, WebHistoryLoad Type loadType, WebCachePolicy cachePolicy)
131 { 131 {
132 frame->loadHistoryItem(item, loadType, cachePolicy); 132 frame->loadHistoryItem(item, loadType, cachePolicy);
133 pumpPendingRequestsForFrameToLoad(frame); 133 pumpPendingRequestsForFrameToLoad(frame);
134 } 134 }
135 135
136 void reloadFrame(WebFrame* frame) 136 void reloadFrame(WebFrame* frame)
137 { 137 {
138 frame->reload(WebFrameLoadType::Reload); 138 frame->reload(WebFrameLoadType::Reload);
139 pumpPendingRequestsForFrameToLoad(frame); 139 pumpPendingRequestsForFrameToLoad(frame);
140 } 140 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 m_frame->close(); 301 m_frame->close();
302 } 302 }
303 303
304 void TestWebViewClient::initializeLayerTreeView() 304 void TestWebViewClient::initializeLayerTreeView()
305 { 305 {
306 m_layerTreeView = adoptPtr(new WebLayerTreeViewImplForTesting); 306 m_layerTreeView = adoptPtr(new WebLayerTreeViewImplForTesting);
307 } 307 }
308 308
309 } // namespace FrameTestHelpers 309 } // namespace FrameTestHelpers
310 } // namespace blink 310 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.h ('k') | third_party/WebKit/Source/web/tests/VisualViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698