mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-14 02:24:03 +01:00
da53451f97
- Configuration of OSR VSync interval is currently missing (issue #2517) - Rename VERSION to VERSION.in to fix libc++ compile error (issue #2518)
120 lines
2.6 KiB
C++
120 lines
2.6 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.
|
|
|
|
#include "libcef/browser/chrome_profile_stub.h"
|
|
|
|
#include "content/public/browser/resource_context.h"
|
|
#include "net/url_request/url_request_context.h"
|
|
|
|
ChromeProfileStub::ChromeProfileStub() {}
|
|
|
|
ChromeProfileStub::~ChromeProfileStub() {}
|
|
|
|
scoped_refptr<base::SequencedTaskRunner> ChromeProfileStub::GetIOTaskRunner() {
|
|
NOTREACHED();
|
|
return scoped_refptr<base::SequencedTaskRunner>();
|
|
}
|
|
|
|
std::string ChromeProfileStub::GetProfileUserName() const {
|
|
NOTREACHED();
|
|
return std::string();
|
|
}
|
|
|
|
Profile::ProfileType ChromeProfileStub::GetProfileType() const {
|
|
return REGULAR_PROFILE;
|
|
}
|
|
|
|
Profile* ChromeProfileStub::GetOffTheRecordProfile() {
|
|
NOTREACHED();
|
|
return NULL;
|
|
}
|
|
|
|
void ChromeProfileStub::DestroyOffTheRecordProfile() {
|
|
NOTREACHED();
|
|
}
|
|
|
|
bool ChromeProfileStub::HasOffTheRecordProfile() {
|
|
return false;
|
|
}
|
|
|
|
Profile* ChromeProfileStub::GetOriginalProfile() {
|
|
return this;
|
|
}
|
|
|
|
const Profile* ChromeProfileStub::GetOriginalProfile() const {
|
|
return this;
|
|
}
|
|
|
|
bool ChromeProfileStub::IsSupervised() const {
|
|
return false;
|
|
}
|
|
|
|
bool ChromeProfileStub::IsChild() const {
|
|
return false;
|
|
}
|
|
|
|
bool ChromeProfileStub::IsLegacySupervised() const {
|
|
return false;
|
|
}
|
|
|
|
ExtensionSpecialStoragePolicy*
|
|
ChromeProfileStub::GetExtensionSpecialStoragePolicy() {
|
|
NOTREACHED();
|
|
return NULL;
|
|
}
|
|
|
|
PrefService* ChromeProfileStub::GetOffTheRecordPrefs() {
|
|
NOTREACHED();
|
|
return NULL;
|
|
}
|
|
|
|
base::OnceCallback<net::CookieStore*()>
|
|
ChromeProfileStub::GetExtensionsCookieStoreGetter() {
|
|
return base::BindOnce(
|
|
[](content::ResourceContext* context) {
|
|
return context->GetRequestContext()->cookie_store();
|
|
},
|
|
GetResourceContext());
|
|
}
|
|
|
|
bool ChromeProfileStub::IsSameProfile(Profile* profile) {
|
|
NOTREACHED();
|
|
return false;
|
|
}
|
|
|
|
base::Time ChromeProfileStub::GetStartTime() const {
|
|
NOTREACHED();
|
|
return base::Time();
|
|
}
|
|
|
|
base::FilePath ChromeProfileStub::last_selected_directory() {
|
|
NOTREACHED();
|
|
return base::FilePath();
|
|
}
|
|
|
|
void ChromeProfileStub::set_last_selected_directory(
|
|
const base::FilePath& path) {
|
|
NOTREACHED();
|
|
}
|
|
|
|
GURL ChromeProfileStub::GetHomePage() {
|
|
NOTREACHED();
|
|
return GURL();
|
|
}
|
|
|
|
bool ChromeProfileStub::WasCreatedByVersionOrLater(const std::string& version) {
|
|
NOTREACHED();
|
|
return false;
|
|
}
|
|
|
|
void ChromeProfileStub::SetExitType(ExitType exit_type) {
|
|
NOTREACHED();
|
|
}
|
|
|
|
Profile::ExitType ChromeProfileStub::GetLastSessionExitType() {
|
|
NOTREACHED();
|
|
return EXIT_NORMAL;
|
|
}
|