OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/public/test/frame_load_waiter.h" |
| 6 |
| 7 #include "base/message_loop/message_loop.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 FrameLoadWaiter::FrameLoadWaiter(RenderView* view) : RenderViewObserver(view) { |
| 12 } |
| 13 |
| 14 void FrameLoadWaiter::Wait() { |
| 15 // Pump messages until Blink's threaded HTML parser finishes. |
| 16 run_loop_.Run(); |
| 17 } |
| 18 |
| 19 void FrameLoadWaiter::DidFinishLoad(blink::WebLocalFrame* frame) { |
| 20 run_loop_.Quit(); |
| 21 } |
| 22 |
| 23 } // namespace content |
OLD | NEW |