| OLD | NEW |
| 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 CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ |
| 6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ | 6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/security_state/security_state_model.h" | 10 #include "components/security_state/security_state_model.h" |
| 10 #include "components/security_state/security_state_model_client.h" | 11 #include "components/security_state/security_state_model_client.h" |
| 11 #include "content/public/browser/web_contents_user_data.h" | 12 #include "content/public/browser/web_contents_user_data.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 class WebContents; | 15 class WebContents; |
| 15 } // namespace content | 16 } // namespace content |
| 16 | 17 |
| 17 // Uses a WebContents to provide a SecurityStateModel with the | 18 // Uses a WebContents to provide a SecurityStateModel with the |
| 18 // information that it needs to determine the page's security status. | 19 // information that it needs to determine the page's security status. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 explicit ChromeSecurityStateModelClient(content::WebContents* web_contents); | 37 explicit ChromeSecurityStateModelClient(content::WebContents* web_contents); |
| 37 friend class content::WebContentsUserData<ChromeSecurityStateModelClient>; | 38 friend class content::WebContentsUserData<ChromeSecurityStateModelClient>; |
| 38 | 39 |
| 39 content::WebContents* web_contents_; | 40 content::WebContents* web_contents_; |
| 40 scoped_ptr<security_state::SecurityStateModel> security_state_model_; | 41 scoped_ptr<security_state::SecurityStateModel> security_state_model_; |
| 41 | 42 |
| 42 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelClient); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelClient); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ | 46 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ |
| OLD | NEW |