mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			63 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright (c) 2015 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 class gathers state related to a single user profile.
 | 
						|
 | 
						|
#ifndef CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_ALLOY_H_
 | 
						|
#define CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_ALLOY_H_
 | 
						|
 | 
						|
#include "chrome/browser/profiles/profile.h"
 | 
						|
 | 
						|
// This file provides a stub implementation of Chrome's Profile object for use
 | 
						|
// as an interop layer between CEF and files that live in chrome/.
 | 
						|
 | 
						|
class ChromeProfileAlloy : public Profile {
 | 
						|
 public:
 | 
						|
  ChromeProfileAlloy();
 | 
						|
  ~ChromeProfileAlloy() override;
 | 
						|
 | 
						|
 protected:
 | 
						|
  // Profile methods.
 | 
						|
  bool IsOffTheRecord() override;
 | 
						|
  bool IsOffTheRecord() const override;
 | 
						|
  const OTRProfileID& GetOTRProfileID() const override;
 | 
						|
  variations::VariationsClient* GetVariationsClient() override;
 | 
						|
  scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
 | 
						|
  std::string GetProfileUserName() const override;
 | 
						|
  Profile* GetOffTheRecordProfile(
 | 
						|
      const Profile::OTRProfileID& otr_profile_id) override;
 | 
						|
  std::vector<Profile*> GetAllOffTheRecordProfiles() override;
 | 
						|
  void DestroyOffTheRecordProfile(Profile* otr_profile) override;
 | 
						|
  bool HasOffTheRecordProfile(
 | 
						|
      const Profile::OTRProfileID& otr_profile_id) override;
 | 
						|
  bool HasAnyOffTheRecordProfile() override;
 | 
						|
  Profile* GetOriginalProfile() override;
 | 
						|
  const Profile* GetOriginalProfile() const override;
 | 
						|
  bool IsSupervised() const override;
 | 
						|
  bool IsChild() const override;
 | 
						|
  bool IsLegacySupervised() const override;
 | 
						|
  ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override;
 | 
						|
  PrefService* GetOffTheRecordPrefs() override;
 | 
						|
  bool IsSameOrParent(Profile* profile) override;
 | 
						|
  base::Time GetStartTime() const override;
 | 
						|
  base::FilePath last_selected_directory() override;
 | 
						|
  void set_last_selected_directory(const base::FilePath& path) override;
 | 
						|
  GURL GetHomePage() override;
 | 
						|
  bool WasCreatedByVersionOrLater(const std::string& version) override;
 | 
						|
  void SetExitType(ExitType exit_type) override;
 | 
						|
  ExitType GetLastSessionExitType() const override;
 | 
						|
  base::Time GetCreationTime() const override;
 | 
						|
  void SetCreationTimeForTesting(base::Time creation_time) override;
 | 
						|
  void RecordMainFrameNavigation() override;
 | 
						|
  bool IsSignedIn() override;
 | 
						|
 | 
						|
 private:
 | 
						|
  std::unique_ptr<variations::VariationsClient> variations_client_;
 | 
						|
 | 
						|
  DISALLOW_COPY_AND_ASSIGN(ChromeProfileAlloy);
 | 
						|
};
 | 
						|
 | 
						|
#endif  // CEF_LIBCEF_BROWSER_ALLOY_CHROME_PROFILE_ALLOY_H_
 |