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

Side by Side Diff: components/filesystem/public/cpp/prefs/pref_service_factory.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ 5 #ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ 6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/prefs/pref_service.h" 9 #include "components/prefs/pref_service.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class ApplicationImpl; 12 class Shell;
13 } 13 }
14 14
15 class PrefRegistry; 15 class PrefRegistry;
16 16
17 namespace filesystem { 17 namespace filesystem {
18 18
19 // This factory method creates a PrefService for the local process based on the 19 // This factory method creates a PrefService for the local process based on the
20 // preference registry passed in. This PrefService will synchronize with a JSON 20 // preference registry passed in. This PrefService will synchronize with a JSON
21 // file in the mojo:filesystem. 21 // file in the mojo:filesystem.
22 scoped_ptr<PrefService> CreatePrefService(mojo::ApplicationImpl* application, 22 scoped_ptr<PrefService> CreatePrefService(mojo::Shell* shell,
23 PrefRegistry* registry); 23 PrefRegistry* registry);
24 24
25 } // namespace filesystem 25 } // namespace filesystem
26 26
27 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ 27 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « components/filesystem/files_test_base.cc ('k') | components/filesystem/public/cpp/prefs/pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698