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

Side by Side Diff: components/profile_service/profile_app.h

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/profile_service/profile_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROFILE_SERVICE_PROFILE_APP_H_ 5 #ifndef COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_
6 #define COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_ 6 #define COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_
7 7
8 #include "components/filesystem/lock_table.h" 8 #include "components/filesystem/lock_table.h"
9 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 9 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
10 #include "components/profile_service/public/interfaces/profile.mojom.h" 10 #include "components/profile_service/public/interfaces/profile.mojom.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // TODO(erg): This is a temporary hack until we redo how we initialize mojo 49 // TODO(erg): This is a temporary hack until we redo how we initialize mojo
50 // applications inside of chrome in general; this system won't work once 50 // applications inside of chrome in general; this system won't work once
51 // ProfileApp gets put in its own sandboxed process. 51 // ProfileApp gets put in its own sandboxed process.
52 static void AssociateMojoUserIDWithProfileDir( 52 static void AssociateMojoUserIDWithProfileDir(
53 const std::string& user_id, 53 const std::string& user_id,
54 const base::FilePath& profile_data_dir); 54 const base::FilePath& profile_data_dir);
55 55
56 private: 56 private:
57 // |ShellClient| override: 57 // |ShellClient| override:
58 void Initialize(mojo::Connector* connector, 58 void Initialize(mojo::Connector* connector,
59 const std::string& url, 59 const mojo::Identity& identity,
60 const std::string& user_id,
61 uint32_t id) override; 60 uint32_t id) override;
62 bool AcceptConnection(mojo::Connection* connection) override; 61 bool AcceptConnection(mojo::Connection* connection) override;
63 62
64 // |InterfaceFactory<ProfileService>| implementation: 63 // |InterfaceFactory<ProfileService>| implementation:
65 void Create(mojo::Connection* connection, 64 void Create(mojo::Connection* connection,
66 ProfileServiceRequest request) override; 65 ProfileServiceRequest request) override;
67 66
68 // |InterfaceFactory<LevelDBService>| implementation: 67 // |InterfaceFactory<LevelDBService>| implementation:
69 void Create(mojo::Connection* connection, 68 void Create(mojo::Connection* connection,
70 leveldb::LevelDBServiceRequest request) override; 69 leveldb::LevelDBServiceRequest request) override;
71 70
72 mojo::TracingImpl tracing_; 71 mojo::TracingImpl tracing_;
73 72
74 scoped_ptr<ProfileService> profile_service_; 73 scoped_ptr<ProfileService> profile_service_;
75 mojo::BindingSet<ProfileService> profile_bindings_; 74 mojo::BindingSet<ProfileService> profile_bindings_;
76 75
77 scoped_ptr<leveldb::LevelDBService> leveldb_service_; 76 scoped_ptr<leveldb::LevelDBService> leveldb_service_;
78 mojo::BindingSet<leveldb::LevelDBService> leveldb_bindings_; 77 mojo::BindingSet<leveldb::LevelDBService> leveldb_bindings_;
79 78
80 scoped_ptr<filesystem::LockTable> lock_table_; 79 scoped_ptr<filesystem::LockTable> lock_table_;
81 80
82 base::FilePath profile_data_dir_; 81 base::FilePath profile_data_dir_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(ProfileApp); 83 DISALLOW_COPY_AND_ASSIGN(ProfileApp);
85 }; 84 };
86 85
87 } // namespace profile 86 } // namespace profile
88 87
89 #endif // COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_ 88 #endif // COMPONENTS_PROFILE_SERVICE_PROFILE_APP_H_
OLDNEW
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/profile_service/profile_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698