mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-14 18:44:56 +01:00
6b2c1fe969
This change adds an --enable-network-service command-line flag to run with NetworkService enabled. To test: Run `cefclient --enable-network-service --disable-extensions`. The application should start, load a website and exit without crashing. Network-related handlers (for cookies, schemes, requests, etc) and extensions are not expected to work yet. There should be no functional change when running without the NetworkService enabled.
31 lines
931 B
C++
31 lines
931 B
C++
// Copyright (c) 2013 The Chromium Embedded Framework 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 CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|
|
#define CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|
|
|
|
#include <memory>
|
|
|
|
namespace base {
|
|
class FilePath;
|
|
}
|
|
|
|
class PrefService;
|
|
class Profile;
|
|
|
|
namespace browser_prefs {
|
|
|
|
// Name for the user prefs JSON file.
|
|
extern const char kUserPrefsFileName[];
|
|
|
|
// Create the PrefService used to manage pref registration and storage.
|
|
// |profile| will be nullptr for the system-level PrefService.
|
|
std::unique_ptr<PrefService> CreatePrefService(Profile* profile,
|
|
const base::FilePath& cache_path,
|
|
bool persist_user_preferences);
|
|
|
|
} // namespace browser_prefs
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|