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

Side by Side Diff: chrome/browser/chromeos/login/signin/merge_session_throttling_utils.h

Issue 2560023002: [Merge to M56] Prevent the pre-session-restore log spam (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin/merge_session_throttling_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698