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

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: Override CanSendWhileSwappedOut Created 5 years, 4 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: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 3b9b5f823c3ed361476753c9382c1c78ddeec59f..44935de4e1fd2dd43086f2d490f589eb955e2897 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"
@@ -610,3 +611,9 @@ void ChromeContentClient::AddServiceWorkerSchemes(
std::set<std::string>* schemes) {
schemes->insert(extensions::kExtensionScheme);
}
+
+bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* message) {
+ return content::ContentClient::CanSendWhileSwappedOut(message) ||
Charlie Reis 2015/09/02 17:16:30 Remove this first clause. The default implementat
tbansal1 2015/09/02 17:30:26 Added DCHECK. Please let me know if that's not cor
+ message->type() ==
+ DataReductionProxyViewHostMsg_DataReductionProxyStatus::ID;
+}

Powered by Google App Engine
This is Rietveld 408576698