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

Unified Diff: content/shell/browser/layout_test/blink_test_controller.h

Issue 1736353002: ABANDONED CL: Shared-memory-based approach to layout tests runtime flags replication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
Index: content/shell/browser/layout_test/blink_test_controller.h
diff --git a/content/shell/browser/layout_test/blink_test_controller.h b/content/shell/browser/layout_test/blink_test_controller.h
index 47d3760466253ddecf9bcf6c8174f0e890e13db3..0a973f68f485892c32d859e88376900320e29f86 100644
--- a/content/shell/browser/layout_test/blink_test_controller.h
+++ b/content/shell/browser/layout_test/blink_test_controller.h
@@ -13,6 +13,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/shared_memory.h"
#include "base/scoped_observer.h"
#include "base/synchronization/lock.h"
#include "base/threading/non_thread_safe.h"
@@ -33,10 +34,6 @@
class SkBitmap;
-namespace test_runner {
-struct LayoutDumpFlags;
-}
-
namespace url {
class Origin;
}
@@ -194,8 +191,7 @@ class BlinkTestController : public base::NonThreadSafe,
void OnAudioDump(const std::vector<unsigned char>& audio_dump);
void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image);
void OnTextDump(const std::string& dump);
- void OnInitiateLayoutDump(
- const test_runner::LayoutDumpFlags& layout_dump_flags);
+ void OnInitiateLayoutDump(bool dump_child_frames);
void OnLayoutDumpResponse(RenderFrameHost* sender, const std::string& dump);
void OnPrintMessage(const std::string& message);
void OnOverridePreferences(const WebPreferences& prefs);
@@ -265,6 +261,9 @@ class BlinkTestController : public base::NonThreadSafe,
ScopedObserver<RenderProcessHost, RenderProcessHostObserver>
render_process_host_observer_;
+ // Memory backing LayoutDumpFlags (shared across all renderers).
+ base::SharedMemory layout_dump_flags_memory_;
+
#if defined(OS_ANDROID)
// Because of the nested message pump implementation, Android needs to allow
// waiting on the UI thread while layout tests are being ran.
« no previous file with comments | « components/test_runner/web_test_runner.h ('k') | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698