| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/atomic_ref_count.h" | 8 #include "base/atomic_ref_count.h" |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Whether requests from |web_contents| or |profile| should currently be | 41 // Whether requests from |web_contents| or |profile| should currently be |
| 42 // delayed. This should be called on the UI thread. | 42 // delayed. This should be called on the UI thread. |
| 43 bool ShouldDelayRequestForProfile(Profile* profile); | 43 bool ShouldDelayRequestForProfile(Profile* profile); |
| 44 bool ShouldDelayRequestForWebContents(content::WebContents* web_contents); | 44 bool ShouldDelayRequestForWebContents(content::WebContents* web_contents); |
| 45 | 45 |
| 46 // True if the load of |url| should be delayed. The function is safe to be | 46 // True if the load of |url| should be delayed. The function is safe to be |
| 47 // called on any thread. | 47 // called on any thread. |
| 48 bool ShouldDelayUrl(const GURL& url); | 48 bool ShouldDelayUrl(const GURL& url); |
| 49 | 49 |
| 50 // True if session restore hasn't started or in progress. |
| 51 bool IsSessionRestorePending(Profile* profile); |
| 52 |
| 50 } // namespace merge_session_throttling_utils | 53 } // namespace merge_session_throttling_utils |
| 51 | 54 |
| 52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H
_ | 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_THROTTLING_UTILS_H
_ |
| OLD | NEW |