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

Side by Side Diff: third_party/WebKit/Source/platform/LinkHash.cpp

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2008, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.par sed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed); 47 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.par sed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed);
48 } 48 }
49 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed( ), relative.characters16(), relative.length(), 0, buffer, &parsed); 49 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed( ), relative.characters16(), relative.length(), 0, buffer, &parsed);
50 } 50 }
51 51
52 LinkHash visitedLinkHash(const KURL& base, const AtomicString& relative) 52 LinkHash visitedLinkHash(const KURL& base, const AtomicString& relative)
53 { 53 {
54 if (relative.isNull()) 54 if (relative.isNull())
55 return 0; 55 return 0;
56 url::RawCanonOutput<2048> buffer; 56 url::RawCanonOutput<2048> buffer;
57 if (!resolveRelative(base, relative.string(), &buffer)) 57 if (!resolveRelative(base, relative.getString(), &buffer))
58 return 0; 58 return 0;
59 return Platform::current()->visitedLinkHash(buffer.data(), buffer.length()); 59 return Platform::current()->visitedLinkHash(buffer.data(), buffer.length());
60 } 60 }
61 61
62 } // namespace blink 62 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698