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

Unified Diff: content/public/test/frame_load_waiter.h

Issue 251903006: Attempt 2 to enable async data: URL loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better fix for BrowserPlugin tests from lazyboy@ Created 6 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698