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

Side by Side Diff: blimp/client/app/linux/blimp_client_context_delegate_linux.h

Issue 2349073002: Blimp Settings framework on the c++ side (Closed)
Patch Set: Merge branch 'refs/heads/master' into settings Created 4 years, 1 month 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 BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_ 5 #ifndef BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_
6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_ 6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_
7 7
8 #include "blimp/client/public/blimp_client_context_delegate.h" 8 #include "blimp/client/public/blimp_client_context_delegate.h"
9 #include "google_apis/gaia/identity_provider.h" 9 #include "google_apis/gaia/identity_provider.h"
10 10
11 namespace user_prefs {
12 class PrefRegistrySyncable;
13 }
David Trainor- moved to gerrit 2016/10/26 01:14:54 // namespace user_prefs
Menglin 2016/10/26 01:46:21 Done.
14 class PrefService;
David Trainor- moved to gerrit 2016/10/26 01:14:54 new line before this
Menglin 2016/10/26 01:46:22 Done.
15
11 namespace blimp { 16 namespace blimp {
12 namespace client { 17 namespace client {
13 18
14 class BlimpContents; 19 class BlimpContents;
15 20
16 class BlimpClientContextDelegateLinux : public BlimpClientContextDelegate { 21 class BlimpClientContextDelegateLinux : public BlimpClientContextDelegate {
17 public: 22 public:
18 BlimpClientContextDelegateLinux(); 23 BlimpClientContextDelegateLinux();
19 ~BlimpClientContextDelegateLinux() override; 24 ~BlimpClientContextDelegateLinux() override;
20 25
21 // BlimpClientContextDelegate implementation. 26 // BlimpClientContextDelegate implementation.
22 void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override; 27 void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override;
23 void OnAssignmentConnectionAttempted(AssignmentRequestResult result, 28 void OnAssignmentConnectionAttempted(AssignmentRequestResult result,
24 const Assignment& assignment) override; 29 const Assignment& assignment) override;
25 std::unique_ptr<IdentityProvider> CreateIdentityProvider() override; 30 std::unique_ptr<IdentityProvider> CreateIdentityProvider() override;
26 void OnAuthenticationError(const GoogleServiceAuthError& error) override; 31 void OnAuthenticationError(const GoogleServiceAuthError& error) override;
27 void OnConnected() override; 32 void OnConnected() override;
28 void OnEngineDisconnected(int result) override; 33 void OnEngineDisconnected(int result) override;
29 void OnNetworkDisconnected(int result) override; 34 void OnNetworkDisconnected(int result) override;
30 35
36 PrefService* pref_service() { return pref_service_.get(); }
37
31 private: 38 private:
39 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_;
40 std::unique_ptr<PrefService> pref_service_;
David Trainor- moved to gerrit 2016/10/26 01:14:55 Can these just be members in the linux blimp_main
Menglin 2016/10/26 01:46:22 Done.
41
32 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegateLinux); 42 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegateLinux);
33 }; 43 };
34 44
35 } // namespace client 45 } // namespace client
36 } // namespace blimp 46 } // namespace blimp
37 47
38 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_ 48 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_CLIENT_CONTEXT_DELEGATE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698