Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chromeos / network / network_state_handler.h
index 20f0577..69a2557 100644 (file)
@@ -191,15 +191,15 @@ class CHROMEOS_EXPORT NetworkStateHandler
   // list, which will trigger the appropriate observer calls.
   void RequestScan() const;
 
-  // Request a scan if not scanning and run |callback| when the Scanning state
+  // Requests a scan if not scanning and runs |callback| when the Scanning state
   // for any Device of network type |type| completes.
   void WaitForScan(const std::string& type, const base::Closure& callback);
 
-  // Request a network scan then signal Shill to connect to the best available
-  // networks when completed.
+  // Requests a network scan then signals Shill to connect to the best available
+  // wifi network when completed.
   void ConnectToBestWifiNetwork();
 
-  // Request an update for an existing NetworkState, e.g. after configuring
+  // Requests an update for an existing NetworkState, e.g. after configuring
   // a network. This is a no-op if an update request is already pending. To
   // ensure that a change is picked up, this must be called after Shill
   // acknowledged it (e.g. in the callback of a SetProperties).
@@ -208,12 +208,16 @@ class CHROMEOS_EXPORT NetworkStateHandler
   // properties actually changed.
   void RequestUpdateForNetwork(const std::string& service_path);
 
-  // Clear the last_error value for the NetworkState for |service_path|.
+  // Clears the last_error value for the NetworkState for |service_path|.
   void ClearLastErrorForNetwork(const std::string& service_path);
 
-  // Set the list of devices on which portal check is enabled.
+  // Sets the list of devices on which portal check is enabled.
   void SetCheckPortalList(const std::string& check_portal_list);
 
+  // Sets the Manager.WakeOnLan property. Note: we do not track this state, we
+  // only set it.
+  void SetWakeOnLanEnabled(bool enabled);
+
   const std::string& GetCheckPortalListForTest() const {
     return check_portal_list_;
   }
@@ -228,7 +232,7 @@ class CHROMEOS_EXPORT NetworkStateHandler
     return default_network_path_;
   }
 
-  // Construct and initialize an instance for testing.
+  // Constructs and initializes an instance for testing.
   static NetworkStateHandler* InitializeForTest();
 
   // Default set of comma separated interfaces on which to enable
@@ -244,30 +248,30 @@ class CHROMEOS_EXPORT NetworkStateHandler
   // This adds new entries to |network_list_| or |device_list_| and deletes any
   // entries that are no longer in the list.
   virtual void UpdateManagedList(ManagedState::ManagedType type,
-                                 const base::ListValue& entries) OVERRIDE;
+                                 const base::ListValue& entries) override;
 
   // The list of profiles changed (i.e. a user has logged in). Re-request
   // properties for all services since they may have changed.
-  virtual void ProfileListChanged() OVERRIDE;
+  virtual void ProfileListChanged() override;
 
   // Parses the properties for the network service or device. Mostly calls
   // managed->PropertyChanged(key, value) for each dictionary entry.
   virtual void UpdateManagedStateProperties(
       ManagedState::ManagedType type,
       const std::string& path,
-      const base::DictionaryValue& properties) OVERRIDE;
+      const base::DictionaryValue& properties) override;
 
   // Called by ShillPropertyHandler when a watched service property changes.
   virtual void UpdateNetworkServiceProperty(
       const std::string& service_path,
       const std::string& key,
-      const base::Value& value) OVERRIDE;
+      const base::Value& value) override;
 
   // Called by ShillPropertyHandler when a watched device property changes.
   virtual void UpdateDeviceProperty(
       const std::string& device_path,
       const std::string& key,
-      const base::Value& value) OVERRIDE;
+      const base::Value& value) override;
 
   // Called by ShillPropertyHandler when a watched network or device
   // IPConfig property changes.
@@ -275,26 +279,26 @@ class CHROMEOS_EXPORT NetworkStateHandler
       ManagedState::ManagedType type,
       const std::string& path,
       const std::string& ip_config_path,
-      const base::DictionaryValue& properties) OVERRIDE;
+      const base::DictionaryValue& properties) override;
 
   // Called by ShillPropertyHandler when the portal check list manager property
   // changes.
   virtual void CheckPortalListChanged(
-      const std::string& check_portal_list) OVERRIDE;
+      const std::string& check_portal_list) override;
 
   // Called by ShillPropertyHandler when a technology list changes.
-  virtual void TechnologyListChanged() OVERRIDE;
+  virtual void TechnologyListChanged() override;
 
   // Called by |shill_property_handler_| when the service or device list has
   // changed and all entries have been updated. This updates the list and
   // notifies observers.
   virtual void ManagedStateListChanged(
-      ManagedState::ManagedType type) OVERRIDE;
+      ManagedState::ManagedType type) override;
 
   // Called when the default network service changes. Sets default_network_path_
   // and notifies listeners.
   virtual void DefaultNetworkServiceChanged(
-      const std::string& service_path) OVERRIDE;
+      const std::string& service_path) override;
 
   // Called after construction. Called explicitly by tests after adding
   // test observers.