Chromium change: https://source.chromium.org/chromium/chromium/src/+/cd23b8b9d212daf06dde638488dbaa355d6651fa commit cd23b8b9d212daf06dde638488dbaa355d6651fa Author: Daniel Cheng <dcheng@chromium.org> Date: Fri Sep 16 17:16:24 2022 +0000 Move bind.h, callback{,_forward,_helpers}.h into //base/functional Forwarding headers remain in the old locations to ease migration. Include paths for files in //base/functional/ are also fixed up to the new canonical path; remaining fixups are deferred until followups to minimize the risk of conflicts. Bug: 1364441
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_H_
|
|
#define BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_H_
|
|
|
|
#include "base/functional/callback.h"
|
|
#include "base/functional/callback_helpers.h"
|
|
#include "chrome/browser/shell_integration.h"
|
|
|
|
class Profile;
|
|
|
|
namespace shell_integration {
|
|
|
|
void PinShortcut(
|
|
Profile* profile = nullptr,
|
|
base::OnceCallback<void(bool)> result_callback = base::DoNothing());
|
|
void IsShortcutPinned(
|
|
base::OnceCallback<void(bool)> result_callback = base::DoNothing());
|
|
|
|
class BraveDefaultBrowserWorker : public DefaultBrowserWorker {
|
|
public:
|
|
BraveDefaultBrowserWorker();
|
|
|
|
BraveDefaultBrowserWorker(const BraveDefaultBrowserWorker&) = delete;
|
|
BraveDefaultBrowserWorker& operator=(const BraveDefaultBrowserWorker&) =
|
|
delete;
|
|
|
|
protected:
|
|
~BraveDefaultBrowserWorker() override;
|
|
|
|
void SetAsDefaultImpl(base::OnceClosure on_finished_callback) override;
|
|
};
|
|
|
|
} // namespace shell_integration
|
|
|
|
#endif // BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_H_
|