2016-07-18 23:22:22 +02:00
|
|
|
// Copyright (c) 2016 The Chromium Embedded Framework Authors.
|
|
|
|
// Portions copyright (c) 2012 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.
|
|
|
|
|
|
|
|
// This file provides a stub implementation of Chrome's ProfileManager object
|
|
|
|
// for use as an interop layer between CEF and files that live in chrome/.
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_
|
2016-07-18 23:22:22 +02:00
|
|
|
|
|
|
|
#include "chrome/browser/profiles/profile_manager.h"
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
class ChromeProfileManagerAlloy : public ProfileManager {
|
2016-07-18 23:22:22 +02:00
|
|
|
public:
|
2020-06-28 20:29:44 +02:00
|
|
|
ChromeProfileManagerAlloy();
|
|
|
|
~ChromeProfileManagerAlloy() override;
|
2016-07-18 23:22:22 +02:00
|
|
|
|
2016-08-04 14:37:53 +02:00
|
|
|
Profile* GetProfile(const base::FilePath& profile_dir) override;
|
2016-07-18 23:22:22 +02:00
|
|
|
bool IsValidProfile(const void* profile) override;
|
2016-11-07 20:14:09 +01:00
|
|
|
Profile* GetLastUsedProfile(const base::FilePath& user_data_dir) override;
|
2016-07-18 23:22:22 +02:00
|
|
|
|
|
|
|
private:
|
2020-06-28 20:29:44 +02:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(ChromeProfileManagerAlloy);
|
2016-07-18 23:22:22 +02:00
|
|
|
};
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_
|