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

Unified Diff: components/proximity_auth/webui/proximity_auth_ui_delegate.h

Issue 1302313004: Replace ProximityAuthUIDelegate with ProximityAuthClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proximity_auth_client
Patch Set: fixes 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/webui/proximity_auth_ui_delegate.h
diff --git a/components/proximity_auth/webui/proximity_auth_ui_delegate.h b/components/proximity_auth/webui/proximity_auth_ui_delegate.h
deleted file mode 100644
index c4c866d4a46a2c2665247d8544382af9c8a7173a..0000000000000000000000000000000000000000
--- a/components/proximity_auth/webui/proximity_auth_ui_delegate.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
-#define COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h"
-
-class PrefService;
-
-namespace gcm {
-class GCMDriver;
-}
-
-namespace proximity_auth {
-
-class CryptAuthClientFactory;
-class SecureMessageDelegate;
-
-// A delegate used by the chrome://proximity-auth WebUI, used to get
-// implmentations with dependencies on chrome.
-class ProximityAuthUIDelegate {
- public:
- virtual ~ProximityAuthUIDelegate() {}
-
- // Returns the PrefService used by the profile.
- virtual PrefService* GetPrefService() = 0;
-
- // Returns the SecureMessageDelegate used by the system.
- virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0;
-
- // Constructs the CryptAuthClientFactory that can be used for API requests.
- virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0;
-
- // Constructs the DeviceClassifier message that is sent to CryptAuth for all
- // API requests.
- virtual cryptauth::DeviceClassifier GetDeviceClassifier() = 0;
-
- // Returns the account id of the user.
- virtual std::string GetAccountId() = 0;
-
- // Returns the GCMDriver instance used by Chrome.
- virtual gcm::GCMDriver* GetGCMDriver() = 0;
-};
-
-} // namespace proximity_auth
-
-#endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_
« no previous file with comments | « components/proximity_auth/webui/proximity_auth_ui.cc ('k') | components/proximity_auth/webui/proximity_auth_webui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698