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

Side by Side Diff: chrome/browser/chromeos/login/auth_prewarmer.h

Issue 23684042: Eliminate NetworkManagerChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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_LOGIN_AUTH_PREWARMER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PREWARMER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PREWARMER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PREWARMER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "chromeos/network/network_state_handler_observer.h" 10 #include "chromeos/network/network_state_handler_observer.h"
(...skipping 12 matching lines...) Expand all
23 class AuthPrewarmer : public NetworkStateHandlerObserver, 23 class AuthPrewarmer : public NetworkStateHandlerObserver,
24 public content::NotificationObserver { 24 public content::NotificationObserver {
25 public: 25 public:
26 AuthPrewarmer(); 26 AuthPrewarmer();
27 virtual ~AuthPrewarmer(); 27 virtual ~AuthPrewarmer();
28 28
29 void PrewarmAuthentication(const base::Closure& completion_callback); 29 void PrewarmAuthentication(const base::Closure& completion_callback);
30 30
31 private: 31 private:
32 // chromeos::NetworkStateHandlerObserver overrides. 32 // chromeos::NetworkStateHandlerObserver overrides.
33 virtual void NetworkManagerChanged() OVERRIDE;
34 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; 33 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE;
35 34
36 // content::NotificationObserver overrides. 35 // content::NotificationObserver overrides.
37 virtual void Observe(int type, 36 virtual void Observe(int type,
38 const content::NotificationSource& source, 37 const content::NotificationSource& source,
39 const content::NotificationDetails& details) OVERRIDE; 38 const content::NotificationDetails& details) OVERRIDE;
40 39
41 bool IsNetworkConnected() const; 40 bool IsNetworkConnected() const;
42 net::URLRequestContextGetter* GetRequestContext() const; 41 net::URLRequestContextGetter* GetRequestContext() const;
43 void DoPrewarm(); 42 void DoPrewarm();
44 43
45 content::NotificationRegistrar registrar_; 44 content::NotificationRegistrar registrar_;
46 base::Closure completion_callback_; 45 base::Closure completion_callback_;
47 bool doing_prewarm_; 46 bool doing_prewarm_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(AuthPrewarmer); 48 DISALLOW_COPY_AND_ASSIGN(AuthPrewarmer);
50 }; 49 };
51 50
52 } // namespace chromeos 51 } // namespace chromeos
53 52
54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PREWARMER_H_ 53 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PREWARMER_H_
55
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | chrome/browser/chromeos/login/auth_prewarmer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698