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

Unified Diff: ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ssl/BUILD.gn ('k') | ios/chrome/browser/ssl/ios_chrome_security_state_model_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h
diff --git a/ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h b/ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h
deleted file mode 100644
index 91be8b22081e78af463dd77f4baedaff92e6a697..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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 IOS_CHROME_BROWSER_SSL_IOS_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
-#define IOS_CHROME_BROWSER_SSL_IOS_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "components/security_state/security_state_model.h"
-#include "components/security_state/security_state_model_client.h"
-#include "ios/web/public/web_state/web_state_user_data.h"
-
-namespace web {
-class WebState;
-} // namespace web
-
-// Uses a WebState to provide a SecurityStateModel with the
-// information that it needs to determine the page's security status.
-class IOSChromeSecurityStateModelClient
- : public security_state::SecurityStateModelClient,
- public web::WebStateUserData<IOSChromeSecurityStateModelClient> {
- public:
- ~IOSChromeSecurityStateModelClient() override;
-
- void GetSecurityInfo(
- security_state::SecurityStateModel::SecurityInfo* result) const;
-
- // SecurityStateModelClient:
- void GetVisibleSecurityState(
- security_state::SecurityStateModel::VisibleSecurityState* state) override;
- bool UsedPolicyInstalledCertificate() override;
- bool IsOriginSecure(const GURL& url) override;
-
- private:
- explicit IOSChromeSecurityStateModelClient(web::WebState* web_state);
- friend class web::WebStateUserData<IOSChromeSecurityStateModelClient>;
-
- web::WebState* web_state_;
- std::unique_ptr<security_state::SecurityStateModel> security_state_model_;
-
- DISALLOW_COPY_AND_ASSIGN(IOSChromeSecurityStateModelClient);
-};
-
-#endif // IOS_CHROME_BROWSER_SSL_IOS_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
« no previous file with comments | « ios/chrome/browser/ssl/BUILD.gn ('k') | ios/chrome/browser/ssl/ios_chrome_security_state_model_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698