| Index: chrome/browser/safe_browsing/protocol_manager.h
|
| diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h
|
| index 5588b697540f551f5616a956d84f03d25c36cf5b..47e984b86654b09f3a70654823eaecda7d4116bb 100644
|
| --- a/chrome/browser/safe_browsing/protocol_manager.h
|
| +++ b/chrome/browser/safe_browsing/protocol_manager.h
|
| @@ -166,6 +166,11 @@ class SafeBrowsingProtocolManager : public net::URLFetcherDelegate,
|
| // Returns whether another update is currently scheduled.
|
| bool IsUpdateScheduled() const;
|
|
|
| + // Called when app changes status of foreground or background.
|
| + void SetAppInForeground(bool foreground) {
|
| + app_in_foreground_ = foreground;
|
| + }
|
| +
|
| protected:
|
| // Constructs a SafeBrowsingProtocolManager for |delegate| that issues
|
| // network requests using |request_context_getter|.
|
| @@ -388,6 +393,9 @@ class SafeBrowsingProtocolManager : public net::URLFetcherDelegate,
|
| // ID for URLFetchers for testing.
|
| int url_fetcher_id_;
|
|
|
| + // Whether the app is in foreground or background.
|
| + bool app_in_foreground_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager);
|
| };
|
|
|
|
|