• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   ~ChromeProfileManagerAlloy() override;
18 
19   Profile* GetProfile(const base::FilePath& profile_dir) override;
20   bool IsValidProfile(const void* profile) override;
21   Profile* GetLastUsedProfile(const base::FilePath& user_data_dir) override;
22 
23  private:
24   DISALLOW_COPY_AND_ASSIGN(ChromeProfileManagerAlloy);
25 };
26 
27 #endif  // CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_MANAGER_ALLOY_H_
28