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

Side by Side Diff: chrome/browser/chromeos/network_message_observer.h

Issue 10456045: Refactored mobile activation engine outside of WebUI handler in order to expose its state to other … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NETWORK_MESSAGE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 public NetworkLibrary::CellularDataPlanObserver, 28 public NetworkLibrary::CellularDataPlanObserver,
29 public NetworkLibrary::UserActionObserver, 29 public NetworkLibrary::UserActionObserver,
30 public base::SupportsWeakPtr<NetworkMessageObserver> { 30 public base::SupportsWeakPtr<NetworkMessageObserver> {
31 public: 31 public:
32 explicit NetworkMessageObserver(Profile* profile); 32 explicit NetworkMessageObserver(Profile* profile);
33 virtual ~NetworkMessageObserver(); 33 virtual ~NetworkMessageObserver();
34 34
35 static bool IsApplicableBackupPlan(const CellularDataPlan* plan, 35 static bool IsApplicableBackupPlan(const CellularDataPlan* plan,
36 const CellularDataPlan* other_plan); 36 const CellularDataPlan* other_plan);
37 private: 37 private:
38 virtual void OpenMobileSetupPage(const base::ListValue* args); 38 virtual void OpenMobileSetupPage(const std::string& service_path,
39 const base::ListValue* args);
39 virtual void OpenMoreInfoPage(const base::ListValue* args); 40 virtual void OpenMoreInfoPage(const base::ListValue* args);
40 virtual void InitNewPlan(const CellularDataPlan* plan); 41 virtual void InitNewPlan(const CellularDataPlan* plan);
41 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular); 42 virtual void ShowNeedsPlanNotification(const CellularNetwork* cellular);
42 virtual void ShowNoDataNotification(CellularDataPlanType plan_type); 43 virtual void ShowNoDataNotification(const CellularNetwork* cellular,
rkc 2012/06/05 21:48:03 Nit: Should this be const CellularNetwork* const c
44 CellularDataPlanType plan_type);
43 virtual void ShowLowDataNotification(const CellularDataPlan* plan); 45 virtual void ShowLowDataNotification(const CellularDataPlan* plan);
44 46
45 // NetworkLibrary::NetworkManagerObserver implementation. 47 // NetworkLibrary::NetworkManagerObserver implementation.
46 virtual void OnNetworkManagerChanged(NetworkLibrary* obj) OVERRIDE; 48 virtual void OnNetworkManagerChanged(NetworkLibrary* obj) OVERRIDE;
47 // NetworkLibrary::CellularDataPlanObserver implementation. 49 // NetworkLibrary::CellularDataPlanObserver implementation.
48 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj) OVERRIDE; 50 virtual void OnCellularDataPlanChanged(NetworkLibrary* obj) OVERRIDE;
49 // NetworkLibrary::UserActionObserver implementation. 51 // NetworkLibrary::UserActionObserver implementation.
50 virtual void OnConnectionInitiated(NetworkLibrary* obj, 52 virtual void OnConnectionInitiated(NetworkLibrary* obj,
51 const Network* network) OVERRIDE; 53 const Network* network) OVERRIDE;
52 54
(...skipping 19 matching lines...) Expand all
72 scoped_ptr<NetworkMessageNotification> notification_low_data_; 74 scoped_ptr<NetworkMessageNotification> notification_low_data_;
73 // Notification for showing no data warning 75 // Notification for showing no data warning
74 scoped_ptr<NetworkMessageNotification> notification_no_data_; 76 scoped_ptr<NetworkMessageNotification> notification_no_data_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); 78 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver);
77 }; 79 };
78 80
79 } // namespace chromeos 81 } // namespace chromeos
80 82
81 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ 83 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698