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

Side by Side Diff: third_party/WebKit/Source/web/WebHistoryItem.cpp

Issue 2326153003: Rename referrerPolicy() methods to getReferrerPolicy(). (Closed)
Patch Set: . Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 void WebHistoryItem::setURLString(const WebString& url) { 63 void WebHistoryItem::setURLString(const WebString& url) {
64 m_private->setURLString(KURL(ParsedURLString, url).getString()); 64 m_private->setURLString(KURL(ParsedURLString, url).getString());
65 } 65 }
66 66
67 WebString WebHistoryItem::referrer() const { 67 WebString WebHistoryItem::referrer() const {
68 return m_private->referrer().referrer; 68 return m_private->referrer().referrer;
69 } 69 }
70 70
71 WebReferrerPolicy WebHistoryItem::referrerPolicy() const { 71 WebReferrerPolicy WebHistoryItem::getReferrerPolicy() const {
72 return static_cast<WebReferrerPolicy>(m_private->referrer().referrerPolicy); 72 return static_cast<WebReferrerPolicy>(m_private->referrer().referrerPolicy);
73 } 73 }
74 74
75 void WebHistoryItem::setReferrer(const WebString& referrer, 75 void WebHistoryItem::setReferrer(const WebString& referrer,
76 WebReferrerPolicy referrerPolicy) { 76 WebReferrerPolicy referrerPolicy) {
77 m_private->setReferrer( 77 m_private->setReferrer(
78 Referrer(referrer, static_cast<ReferrerPolicy>(referrerPolicy))); 78 Referrer(referrer, static_cast<ReferrerPolicy>(referrerPolicy)));
79 } 79 }
80 80
81 WebString WebHistoryItem::target() const { 81 WebString WebHistoryItem::target() const {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) { 203 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) {
204 m_private = item; 204 m_private = item;
205 return *this; 205 return *this;
206 } 206 }
207 207
208 WebHistoryItem::operator HistoryItem*() const { 208 WebHistoryItem::operator HistoryItem*() const {
209 return m_private.get(); 209 return m_private.get();
210 } 210 }
211 211
212 } // namespace blink 212 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698