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

Side by Side Diff: content/renderer/webpublicsuffixlist_impl.cc

Issue 60893002: Chromium implementation of WebPublicSufixList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, rename to blink. Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/renderer/webpublicsuffixlist_impl.h"
6
7 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
8
9 namespace content {
10
11 WebPublicSuffixListImpl::~WebPublicSuffixListImpl() {
12 }
13
14 size_t WebPublicSuffixListImpl::getPublicSuffixLength(
15 const blink::WebString& host) {
16 size_t result = net::registry_controlled_domains::GetRegistryLength(
17 host.utf8(),
18 net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES,
19 net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
20 return result ? result : host.length();
21 }
22
23 } // namespace content
OLDNEW
« content/renderer/webpublicsuffixlist_impl.h ('K') | « content/renderer/webpublicsuffixlist_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698