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

Side by Side Diff: components/proximity_auth/webui/proximity_auth_ui_delegate.h

Issue 1248533003: Hook up CryptAuthGCMManager to the enrollment and device sync managers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webui Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ 5 #ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ 6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" 9 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h"
10 10
11 class PrefService; 11 class PrefService;
12 12
13 namespace gcm {
14 class GCMDriver;
15 }
16
13 namespace proximity_auth { 17 namespace proximity_auth {
14 18
15 class CryptAuthClientFactory; 19 class CryptAuthClientFactory;
16 class SecureMessageDelegate; 20 class SecureMessageDelegate;
17 21
18 // A delegate used by the chrome://proximity-auth WebUI, used to get 22 // A delegate used by the chrome://proximity-auth WebUI, used to get
19 // implmentations with dependencies on chrome. 23 // implmentations with dependencies on chrome.
20 class ProximityAuthUIDelegate { 24 class ProximityAuthUIDelegate {
21 public: 25 public:
22 virtual ~ProximityAuthUIDelegate() {} 26 virtual ~ProximityAuthUIDelegate() {}
23 27
24 // Returns the PrefService used by the profile. 28 // Returns the PrefService used by the profile.
25 virtual PrefService* GetPrefService() = 0; 29 virtual PrefService* GetPrefService() = 0;
26 30
27 // Returns the SecureMessageDelegate used by the system. 31 // Returns the SecureMessageDelegate used by the system.
28 virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0; 32 virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0;
29 33
30 // Constructs the CryptAuthClientFactory that can be used for API requests. 34 // Constructs the CryptAuthClientFactory that can be used for API requests.
31 virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0; 35 virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0;
32 36
33 // Constructs the DeviceClassifier message that is sent to CryptAuth for all 37 // Constructs the DeviceClassifier message that is sent to CryptAuth for all
34 // API requests. 38 // API requests.
35 virtual cryptauth::DeviceClassifier GetDeviceClassifier() = 0; 39 virtual cryptauth::DeviceClassifier GetDeviceClassifier() = 0;
40
41 // Returns the GCMDriver instance used by Chrome.
42 virtual gcm::GCMDriver* GetGCMDriver() = 0;
36 }; 43 };
37 44
38 } // namespace proximity_auth 45 } // namespace proximity_auth
39 46
40 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ 47 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698