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

Unified Diff: content/shell/common/layout_test/layout_test_content_client.h

Issue 1777503003: More strict restrictions for content -> content/shell dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swapped-out filtering via ContentClient interface - no layering violation this way. Created 4 years, 9 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/common/layout_test/layout_test_content_client.h
diff --git a/content/shell/common/layout_test/layout_test_content_client.h b/content/shell/common/layout_test/layout_test_content_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee04c208f7fe732887c1fbbafffa41962617eac1
--- /dev/null
+++ b/content/shell/common/layout_test/layout_test_content_client.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_SHELL_COMMON_LAYOUT_TEST_LAYOUT_TEST_CONTENT_CLIENT_H_
+#define CONTENT_SHELL_COMMON_LAYOUT_TEST_LAYOUT_TEST_CONTENT_CLIENT_H_
+
+#include "base/macros.h"
+#include "content/shell/common/shell_content_client.h"
+
+namespace content {
+
+class LayoutTestContentClient : public content::ShellContentClient {
jam 2016/03/22 19:36:00 nit: no content::
Łukasz Anforowicz 2016/03/22 20:36:15 Done.
+ public:
+ LayoutTestContentClient() {}
+ bool CanSendWhileSwappedOut(const IPC::Message* message) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestContentClient);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_COMMON_LAYOUT_TEST_LAYOUT_TEST_CONTENT_CLIENT_H_
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/shell/common/layout_test/layout_test_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698