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

Unified Diff: third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp

Issue 2767343004: Return const references in the Blink SW API where possible (Closed)
Patch Set: Created 3 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 | « no previous file | third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp b/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
index de10d81d733b08ea15a7fdfc041f19b8c84d0ae5..0edbaf726e4febef81a29dd9d730c2c091fda94f 100644
--- a/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -55,7 +55,7 @@ void WebServiceWorkerRequest::setURL(const WebURL& url) {
m_private->m_url = url;
}
-WebURL WebServiceWorkerRequest::url() const {
+const WebURL& WebServiceWorkerRequest::url() const {
return m_private->m_url;
}
@@ -63,7 +63,7 @@ void WebServiceWorkerRequest::setMethod(const WebString& method) {
m_private->m_method = method;
}
-WebString WebServiceWorkerRequest::method() const {
+const WebString& WebServiceWorkerRequest::method() const {
return m_private->m_method;
}
@@ -183,7 +183,7 @@ void WebServiceWorkerRequest::setClientId(const WebString& clientId) {
m_private->m_clientId = clientId;
}
-WebString WebServiceWorkerRequest::clientId() const {
+const WebString& WebServiceWorkerRequest::clientId() const {
return m_private->m_clientId;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698