1 // Copyright (c) 2016 The Chromium Embedded Framework Authors. 2 // Portions copyright (c) 2012 The Chromium Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 6 // This file provides a stub implementation of Chrome's ProfileManager object 7 // for use as an interop layer between CEF and files that live in chrome/. 8 9 #ifndef CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_ 10 #define CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_ 11 12 #include "chrome/browser/profiles/profile_manager.h" 13 14 class ChromeProfileManagerAlloy : public ProfileManager { 15 public: 16 ChromeProfileManagerAlloy(); 17 18 ChromeProfileManagerAlloy(const ChromeProfileManagerAlloy&) = delete; 19 ChromeProfileManagerAlloy& operator=(const ChromeProfileManagerAlloy&) = 20 delete; 21 22 ~ChromeProfileManagerAlloy() override; 23 24 Profile* GetProfile(const base::FilePath& profile_dir) override; 25 bool IsValidProfile(const void* profile) override; 26 }; 27 28 #endif // CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_ 29