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

Unified Diff: content/shell/common/shell_content_client.cc

Issue 1821243002: Fix content/common depending on content/shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/shell/common/shell_content_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/shell_content_client.cc
diff --git a/content/shell/common/shell_content_client.cc b/content/shell/common/shell_content_client.cc
index 82c2f0c5033802df64e4fbf3a6e9e7923c1e8b76..ecb53f2267aabf3dfa4e3e49b112a493797d5954 100644
--- a/content/shell/common/shell_content_client.cc
+++ b/content/shell/common/shell_content_client.cc
@@ -13,6 +13,7 @@
#include "content/app/strings/grit/content_strings.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/user_agent.h"
+#include "content/shell/common/shell_messages.h"
#include "content/shell/common/shell_switches.h"
#include "grit/shell_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -48,6 +49,12 @@ ShellContentClient::ShellContentClient()
ShellContentClient::~ShellContentClient() {}
+bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* message) {
+ // Used in layout tests; handled in BlinkTestController.
+ return message->type() == ShellViewHostMsg_PrintMessage::ID ||
+ message->type() == ShellViewHostMsg_LayoutDumpFlagsChanged::ID;
+}
+
std::string ShellContentClient::GetUserAgent() const {
return GetShellUserAgent();
}
« no previous file with comments | « content/shell/common/shell_content_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698