Chromium Code Reviews| Index: content/public/test/frame_load_waiter.h |
| diff --git a/content/public/test/frame_load_waiter.h b/content/public/test/frame_load_waiter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dbc2fc63a07c9744155bdc35c1cc5432a4e69983 |
| --- /dev/null |
| +++ b/content/public/test/frame_load_waiter.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
jam
2014/04/30 16:08:19
note: the guidelines for what goes in content/publ
dcheng
2014/04/30 17:56:06
Moved to content/test (RenderViewTest needs this a
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "base/macros.h" |
| +#include "base/run_loop.h" |
| +#include "content/public/renderer/render_view_observer.h" |
| + |
| +namespace content { |
| + |
| +class FrameLoadWaiter : public content::RenderViewObserver { |
|
sky
2014/04/30 13:30:59
Add description.
dcheng
2014/04/30 17:56:06
Done.
|
| + public: |
| + explicit FrameLoadWaiter(RenderView* view); |
| + void Wait(); |
| + |
| + private: |
| + virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| + |
| + base::RunLoop run_loop_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(FrameLoadWaiter); |
| +}; |
| + |
| +} // namespace content |