| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 // Gets prefs associated with the given |web_contents|. If no prefs are | 101 // Gets prefs associated with the given |web_contents|. If no prefs are |
| 102 // associated with |web_contents| then NULL is returned. | 102 // associated with |web_contents| then NULL is returned. |
| 103 virtual PrefService* GetPrefs(content::WebContents* web_contents) = 0; | 103 virtual PrefService* GetPrefs(content::WebContents* web_contents) = 0; |
| 104 | 104 |
| 105 // Gets the URL associated with the given |web_contents|. | 105 // Gets the URL associated with the given |web_contents|. |
| 106 virtual const GURL& GetURL(content::WebContents* web_contents) = 0; | 106 virtual const GURL& GetURL(content::WebContents* web_contents) = 0; |
| 107 | 107 |
| 108 // Gets the user associated with the given |web_contents|. NULL may be | 108 // Gets the user associated with the given |web_contents|. NULL may be |
| 109 // returned. | 109 // returned. |
| 110 virtual user_manager::User* GetUser(content::WebContents* web_contents) = 0; | 110 virtual const user_manager::User* GetUser( |
| 111 content::WebContents* web_contents) = 0; |
| 111 | 112 |
| 112 // Gets the content settings map associated with the given |web_contents|. | 113 // Gets the content settings map associated with the given |web_contents|. |
| 113 virtual HostContentSettingsMap* GetContentSettings( | 114 virtual HostContentSettingsMap* GetContentSettings( |
| 114 content::WebContents* web_contents) = 0; | 115 content::WebContents* web_contents) = 0; |
| 115 | 116 |
| 116 // Returns true iff |web_contents| belongs to a guest or incognito session. | 117 // Returns true iff |web_contents| belongs to a guest or incognito session. |
| 117 virtual bool IsGuestOrIncognito(content::WebContents* web_contents) = 0; | 118 virtual bool IsGuestOrIncognito(content::WebContents* web_contents) = 0; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 // This callback will be called when a challenge operation completes. If | 121 // This callback will be called when a challenge operation completes. If |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 scoped_ptr<Delegate> default_delegate_; | 281 scoped_ptr<Delegate> default_delegate_; |
| 281 base::TimeDelta timeout_delay_; | 282 base::TimeDelta timeout_delay_; |
| 282 | 283 |
| 283 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow); | 284 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow); |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace attestation | 287 } // namespace attestation |
| 287 } // namespace chromeos | 288 } // namespace chromeos |
| 288 | 289 |
| 289 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ | 290 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ |
| OLD | NEW |