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

Side by Side Diff: chrome/browser/ui/webui/chromeos/network_config_message_handler.h

Issue 492383002: Use ONC for Cellular APN and SimLock in Settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 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 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_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 virtual void RegisterMessages() OVERRIDE; 31 virtual void RegisterMessages() OVERRIDE;
32 32
33 private: 33 private:
34 // WebUI::RegisterMessageCallback callbacks. These callbacks collect the 34 // WebUI::RegisterMessageCallback callbacks. These callbacks collect the
35 // requested information and call the associated JS method. The first 35 // requested information and call the associated JS method. The first
36 // argument in |arg_list| is always the callback id which is passed back 36 // argument in |arg_list| is always the callback id which is passed back
37 // to the callback method. 37 // to the callback method.
38 void GetNetworks(const base::ListValue* arg_list) const; 38 void GetNetworks(const base::ListValue* arg_list) const;
39 void GetProperties(const base::ListValue* arg_list); 39 void GetProperties(const base::ListValue* arg_list);
40 void GetManagedProperties(const base::ListValue* arg_list); 40 void GetManagedProperties(const base::ListValue* arg_list);
41 void GetShillProperties(const base::ListValue* arg_list);
42 void GetPropertiesSuccess(int callback_id, 41 void GetPropertiesSuccess(int callback_id,
43 const std::string& service_path, 42 const std::string& service_path,
44 const base::DictionaryValue& dictionary) const; 43 const base::DictionaryValue& dictionary) const;
44
45 // Get Shill Properties for debugging purposes only.
46 void GetShillProperties(const base::ListValue* arg_list);
47 void GetShillPropertiesSuccess(int callback_id,
48 const std::string& service_path,
49 const base::DictionaryValue& dictionary) const;
50
45 void InvokeCallback(const base::ListValue& arg_list) const; 51 void InvokeCallback(const base::ListValue& arg_list) const;
46 void ErrorCallback(int callback_id, 52 void ErrorCallback(int callback_id,
47 const std::string& error_name, 53 const std::string& error_name,
48 scoped_ptr<base::DictionaryValue> error_data) const; 54 scoped_ptr<base::DictionaryValue> error_data) const;
49 55
50 base::WeakPtrFactory<NetworkConfigMessageHandler> weak_ptr_factory_; 56 base::WeakPtrFactory<NetworkConfigMessageHandler> weak_ptr_factory_;
51 57
52 DISALLOW_COPY_AND_ASSIGN(NetworkConfigMessageHandler); 58 DISALLOW_COPY_AND_ASSIGN(NetworkConfigMessageHandler);
53 }; 59 };
54 60
55 } // namespace chromeos 61 } // namespace chromeos
56 62
57 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698