Remove ContentClient::CanHandleWhileSwappedOut().

According to the issue 265021, ContentClient::CanHandleWhileSwappedOut() was
introduced to support synchronous browser->renderer messages for WebView.
But this is now obsolete, so we can remove it.

BUG=265021

Review URL: https://codereview.chromium.org/248703002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268226 0039d316-1c4b-4281-b951-d872f2087c98
parent 04523fde
......@@ -493,14 +493,6 @@ void ChromeContentClient::AddAdditionalSchemes(
#endif
}
bool ChromeContentClient::CanHandleWhileSwappedOut(
const IPC::Message& msg) {
// Any Chrome-specific messages (apart from those listed in
// CanSendWhileSwappedOut) that must be handled by the browser when sent from
// swapped out renderers.
return false;
}
std::string ChromeContentClient::GetProduct() const {
return ::GetProduct();
}
......
......@@ -29,7 +29,6 @@ class ChromeContentClient : public content::ContentClient {
virtual void AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
std::vector<std::string>* saveable_shemes) OVERRIDE;
virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
virtual std::string GetProduct() const OVERRIDE;
virtual std::string GetUserAgent() const OVERRIDE;
virtual base::string16 GetLocalizedString(int message_id) const OVERRIDE;
......
......@@ -35,12 +35,6 @@ void ChromeContentClient::AddAdditionalSchemes(
// No additional schemes for iOS.
}
bool ChromeContentClient::CanHandleWhileSwappedOut(
const IPC::Message& msg) {
NOTIMPLEMENTED();
return false;
}
std::string ChromeContentClient::GetProduct() const {
chrome::VersionInfo version_info;
std::string product("CriOS/");
......
......@@ -93,9 +93,7 @@ bool SwappedOutMessages::CanHandleWhileSwappedOut(
break;
}
// Check with the embedder as well.
ContentClient* client = GetContentClient();
return client->CanHandleWhileSwappedOut(msg);
return false;
}
} // namespace content
......@@ -70,10 +70,6 @@ bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) {
return false;
}
bool ContentClient::CanHandleWhileSwappedOut(const IPC::Message& message) {
return false;
}
std::string ContentClient::GetProduct() const {
return std::string();
}
......
......@@ -94,10 +94,6 @@ class CONTENT_EXPORT ContentClient {
// Returns whether the given message should be sent in a swapped out renderer.
virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
// Returns whether the given message should be processed in the browser on
// behalf of a swapped out renderer.
virtual bool CanHandleWhileSwappedOut(const IPC::Message& message);
// Returns a string describing the embedder product name and version,
// of the form "productname/version", with no other slashes.
// Used as part of the user agent string.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment