chromium/components/dom_distiller/core/url_utils.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/dom_distiller/core/url_utils.h"

#include <string>
#include <string_view>

#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/uuid.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/grit/components_resources.h"
#include "crypto/sha2.h"
#include "net/base/url_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
#include "url/url_util.h"

namespace dom_distiller {

namespace url_utils {

namespace {

const char kDummyInternalUrlPrefix[] =;
const char kSeparator[] =;

std::string SHA256InHex(std::string_view str) {}

}  // namespace

const GURL GetDistillerViewUrlFromEntryId(const std::string& scheme,
                                          const std::string& entry_id) {}

const GURL GetDistillerViewUrlFromUrl(const std::string& scheme,
                                      const GURL& url,
                                      const std::string& title,
                                      int64_t start_time_ms) {}

const GURL GetOriginalUrlFromDistillerUrl(const GURL& url) {}

int64_t GetTimeFromDistillerUrl(const GURL& url) {}

std::string GetTitleFromDistillerUrl(const GURL& url) {}

std::string GetValueForKeyInUrl(const GURL& url, const std::string& key) {}

std::string GetValueForKeyInUrlPathQuery(const std::string& path,
                                         const std::string& key) {}

bool IsUrlDistillable(const GURL& url) {}

bool IsDistilledPage(const GURL& url) {}

bool IsUrlDistilledFormat(const GURL& url) {}

}  // namespace url_utils

}  // namespace dom_distiller