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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 1315303002: Dispatch DRP IPC call from renderer main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed DHCECK Created 5 years, 3 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 | « chrome/common/chrome_content_client.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 3b9b5f823c3ed361476753c9382c1c78ddeec59f..6ba397727ba98271809f7bc3874f7fdb105b0d7f 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -30,6 +30,7 @@
#include "chrome/common/secure_origin_whitelist.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/common_resources.h"
+#include "components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/version_info/version_info.h"
#include "content/public/common/content_constants.h"
@@ -539,6 +540,11 @@ void ChromeContentClient::AddAdditionalSchemes(
savable_schemes->push_back(dom_distiller::kDomDistillerScheme);
}
+bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* message) {
+ return message->type() ==
+ DataReductionProxyViewHostMsg_DataReductionProxyStatus::ID;
+}
+
std::string ChromeContentClient::GetProduct() const {
return ::GetProduct();
}
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698