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

Side by Side Diff: extensions/shell/browser/shell_network_controller_chromeos.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | google_apis/gaia/oauth2_token_service.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 EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void HandleConnectionSuccess(); 64 void HandleConnectionSuccess();
65 void HandleConnectionError(const std::string& error_name, 65 void HandleConnectionError(const std::string& error_name,
66 scoped_ptr<base::DictionaryValue> error_data); 66 scoped_ptr<base::DictionaryValue> error_data);
67 67
68 // Current status of communication with the chromeos::NetworkStateHandler. 68 // Current status of communication with the chromeos::NetworkStateHandler.
69 // This is tracked to avoid sending duplicate requests before the handler has 69 // This is tracked to avoid sending duplicate requests before the handler has
70 // acknowledged the initial connection attempt. 70 // acknowledged the initial connection attempt.
71 State state_; 71 State state_;
72 72
73 // Invokes RequestScan() periodically. 73 // Invokes RequestScan() periodically.
74 base::RepeatingTimer<ShellNetworkController> scan_timer_; 74 base::RepeatingTimer scan_timer_;
75 75
76 // Optionally-supplied name of the preferred network. 76 // Optionally-supplied name of the preferred network.
77 std::string preferred_network_name_; 77 std::string preferred_network_name_;
78 78
79 // True if the preferred network is connected or connecting. 79 // True if the preferred network is connected or connecting.
80 bool preferred_network_is_active_; 80 bool preferred_network_is_active_;
81 81
82 base::WeakPtrFactory<ShellNetworkController> weak_ptr_factory_; 82 base::WeakPtrFactory<ShellNetworkController> weak_ptr_factory_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(ShellNetworkController); 84 DISALLOW_COPY_AND_ASSIGN(ShellNetworkController);
85 }; 85 };
86 86
87 } // namespace extensions 87 } // namespace extensions
88 88
89 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_ 89 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_CONTROLLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | google_apis/gaia/oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698