Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2058)

Unified Diff: blimp/client/public/blimp_client_context.h

Issue 2349073002: Blimp Settings framework on the c++ side (Closed)
Patch Set: nits and sync to head Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/client/public/DEPS ('k') | blimp/engine/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/public/blimp_client_context.h
diff --git a/blimp/client/public/blimp_client_context.h b/blimp/client/public/blimp_client_context.h
index bfcc3f96824700babdabbba3d359a39c20751444..8bf3c4a27c7312c05d0089944ce9e26caa6a18a6 100644
--- a/blimp/client/public/blimp_client_context.h
+++ b/blimp/client/public/blimp_client_context.h
@@ -13,6 +13,9 @@
#include "blimp/client/public/blimp_client_context_delegate.h"
#include "blimp/client/public/contents/blimp_contents.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/prefs/command_line_pref_store.h"
+#include "components/prefs/pref_registry_simple.h"
+#include "components/prefs/pref_service.h"
#include "ui/gfx/native_widget_types.h"
#if defined(OS_ANDROID)
@@ -51,7 +54,16 @@ class BlimpClientContext : public KeyedService {
static BlimpClientContext* Create(
scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
- std::unique_ptr<CompositorDependencies> compositor_dependencies);
+ std::unique_ptr<CompositorDependencies> compositor_dependencies,
+ PrefService* local_state);
+
+ // Register Blimp prefs. The implementation of this function depends on
+ // whether the core or dummy implementation of Blimp has been linked in.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
+
+ // Apply blimp command-line switches to the corresponding preferences of the
+ // blimp's own switch map.
+ static void ApplyBlimpSwitches(CommandLinePrefStore* store);
// The delegate provides all the required functionality from the embedder.
virtual void SetDelegate(BlimpClientContextDelegate* delegate) = 0;
« no previous file with comments | « blimp/client/public/DEPS ('k') | blimp/engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698