summaryrefslogtreecommitdiffstats
path: root/content/renderer/webpublicsuffixlist_impl.h
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 22:03:51 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 22:03:51 +0000
commitb9829df7070beb8bfbbac366a0f84fb00bb25a92 (patch)
tree4cc4850a7d01c1354ff9866a7decd0e3b5a1270f /content/renderer/webpublicsuffixlist_impl.h
parent2b0dbd272de36d95c7cd0890a5b3f391f7a13970 (diff)
downloadchromium_src-b9829df7070beb8bfbbac366a0f84fb00bb25a92.zip
chromium_src-b9829df7070beb8bfbbac366a0f84fb00bb25a92.tar.gz
chromium_src-b9829df7070beb8bfbbac366a0f84fb00bb25a92.tar.bz2
The WebPublicSuffixList API allows embedders to tell Blink about what constitutes a top-level domain. It is the source of truth that says that for google.co.uk, co.uk is the top-level domain, and not just .uk. Blink has, until now, been completely ignorant of this complication.
This is the third part of a two-sided patch. The tests will be on the Blink side, landing as the fourth part of the two-sided patch (once this has landed on the chrome side). BUG=307407 Review URL: https://codereview.chromium.org/60893002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webpublicsuffixlist_impl.h')
-rw-r--r--content/renderer/webpublicsuffixlist_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/content/renderer/webpublicsuffixlist_impl.h b/content/renderer/webpublicsuffixlist_impl.h
new file mode 100644
index 0000000..65fcc65
--- /dev/null
+++ b/content/renderer/webpublicsuffixlist_impl.h
@@ -0,0 +1,22 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_WEBPUBLICSUFFIXLIST_IMPL_H_
+#define CONTENT_RENDERER_WEBPUBLICSUFFIXLIST_IMPL_H_
+
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/public/platform/WebPublicSuffixList.h"
+
+namespace content {
+
+class WebPublicSuffixListImpl : public blink::WebPublicSuffixList {
+ public:
+ // WebPublicSuffixList methods:
+ virtual size_t getPublicSuffixLength(const blink::WebString& host);
+ virtual ~WebPublicSuffixListImpl();
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_WEBPUBLICSUFFIXLIST_IMPL_H_