blob: 41176821522cd0f1d9a32e2a66c015048d09468c [file] [log] [blame]
// Copyright 2019 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.
#ifndef WEBLAYER_BROWSER_PROFILE_IMPL_H_
#define WEBLAYER_BROWSER_PROFILE_IMPL_H_
#include "weblayer/public/profile.h"
#if defined(OS_ANDROID)
#include <jni.h>
#endif
namespace content {
class BrowserContext;
}
namespace weblayer {
class ProfileImpl : public Profile {
public:
explicit ProfileImpl(const base::FilePath& path);
~ProfileImpl() override;
content::BrowserContext* GetBrowserContext();
// Profile implementation:
void ClearBrowsingData() override;
#if defined(OS_ANDROID)
void ClearBrowsingData(JNIEnv* env) { ClearBrowsingData(); }
#endif
private:
class BrowserContextImpl;
base::FilePath path_;
std::unique_ptr<BrowserContextImpl> browser_context_;
};
} // namespace weblayer
#endif // WEBLAYER_BROWSER_PROFILE_IMPL_H_