chromium/chrome/browser/ui/tabs/pinned_tab_codec.cc

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

#include "chrome/browser/ui/tabs/pinned_tab_codec.h"

#include <stddef.h>

#include <utility>

#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"

NavigationEntry;

namespace {

// Key used in dictionaries for the url.
const char kURL[] =;

// Returns a Value::Dict representing the supplied StartupTab.
base::Value::Dict EncodeTab(const GURL& url) {}

// Encodes all the pinned tabs from |browser| into |serialized_tabs|.
void EncodePinnedTabs(Browser* browser, base::Value::List& serialized_tabs) {}

// Decodes the previously written values in |value| to |tab|, returning true
// on success.
std::optional<StartupTab> DecodeTab(const base::Value::Dict& value) {}

}  // namespace

// static
void PinnedTabCodec::RegisterProfilePrefs(
    user_prefs::PrefRegistrySyncable* registry) {}

// static
void PinnedTabCodec::WritePinnedTabs(Profile* profile) {}

// static
void PinnedTabCodec::WritePinnedTabs(Profile* profile,
                                     const StartupTabs& tabs) {}

// static
StartupTabs PinnedTabCodec::ReadPinnedTabs(Profile* profile) {}