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

Side by Side Diff: content/shell/renderer/layout_test/layout_test_render_process_observer.cc

Issue 1878863002: Replicate LayoutTestRuntimeFlags across secondary window renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-web-content-settings
Patch Set: Extracted half of changes to https://crrev.com/1890223002 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/layout_test/layout_test_render_process_observer .h" 5 #include "content/shell/renderer/layout_test/layout_test_render_process_observer .h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/test_runner/test_interfaces.h" 8 #include "components/test_runner/test_interfaces.h"
9 #include "components/test_runner/web_test_interfaces.h" 9 #include "components/test_runner/web_test_interfaces.h"
10 #include "components/test_runner/web_test_runner.h" 10 #include "components/test_runner/web_test_runner.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() { 78 void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() {
79 test_interfaces_.reset(); 79 test_interfaces_.reset();
80 } 80 }
81 81
82 bool LayoutTestRenderProcessObserver::OnControlMessageReceived( 82 bool LayoutTestRenderProcessObserver::OnControlMessageReceived(
83 const IPC::Message& message) { 83 const IPC::Message& message) {
84 bool handled = true; 84 bool handled = true;
85 IPC_BEGIN_MESSAGE_MAP(LayoutTestRenderProcessObserver, message) 85 IPC_BEGIN_MESSAGE_MAP(LayoutTestRenderProcessObserver, message)
86 IPC_MESSAGE_HANDLER(ShellViewMsg_SetWebKitSourceDir, OnSetWebKitSourceDir) 86 IPC_MESSAGE_HANDLER(ShellViewMsg_SetWebKitSourceDir, OnSetWebKitSourceDir)
87 IPC_MESSAGE_HANDLER(LayoutTestMsg_ReplicateLayoutTestRuntimeFlagsChanges,
88 OnReplicateLayoutTestRuntimeFlagsChanges)
87 IPC_MESSAGE_UNHANDLED(handled = false) 89 IPC_MESSAGE_UNHANDLED(handled = false)
88 IPC_END_MESSAGE_MAP() 90 IPC_END_MESSAGE_MAP()
89 91
90 return handled; 92 return handled;
91 } 93 }
92 94
93 void LayoutTestRenderProcessObserver::OnSetWebKitSourceDir( 95 void LayoutTestRenderProcessObserver::OnSetWebKitSourceDir(
94 const base::FilePath& webkit_source_dir) { 96 const base::FilePath& webkit_source_dir) {
95 webkit_source_dir_ = webkit_source_dir; 97 webkit_source_dir_ = webkit_source_dir;
96 } 98 }
97 99
100 void LayoutTestRenderProcessObserver::OnReplicateLayoutTestRuntimeFlagsChanges(
101 const base::DictionaryValue& changed_layout_test_runtime_flags) {
102 test_interfaces()->TestRunner()->ReplicateLayoutTestRuntimeFlagsChanges(
103 changed_layout_test_runtime_flags);
104 }
105
98 } // namespace content 106 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698