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

Unified Diff: ash/system/chromeos/network/network_icon.h

Issue 314183002: Cache network icon urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Address feedback Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_icon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_icon.h
diff --git a/ash/system/chromeos/network/network_icon.h b/ash/system/chromeos/network/network_icon.h
index 1f9b2c7e3879951b7ddc8758aa25a28ac299815d..4974de7f227dd270479417cf90cb7fcfbf47dfb1 100644
--- a/ash/system/chromeos/network/network_icon.h
+++ b/ash/system/chromeos/network/network_icon.h
@@ -34,6 +34,13 @@ ASH_EXPORT gfx::ImageSkia GetImageForNetwork(
const chromeos::NetworkState* network,
IconType icon_type);
+// Similar to GetImageForNetwork but returns the cached image url based on
+// |scale_factor| instead.
+ASH_EXPORT std::string GetImageUrlForNetwork(
+ const chromeos::NetworkState* network,
+ IconType icon_type,
+ float scale_factor);
+
// Gets the fulls strength image for a connected network type.
ASH_EXPORT gfx::ImageSkia GetImageForConnectedNetwork(
IconType icon_type,
@@ -49,6 +56,12 @@ ASH_EXPORT gfx::ImageSkia GetImageForDisconnectedNetwork(
IconType icon_type,
const std::string& network_type);
+// Gets a url representing the image for a disconnected network type.
+ASH_EXPORT std::string GetImageUrlForDisconnectedNetwork(
+ IconType icon_type,
+ const std::string& network_type,
+ float scale_factor);
+
// Returns the label for |network| based on |icon_type|. |network| can be NULL.
ASH_EXPORT base::string16 GetLabelForNetwork(
const chromeos::NetworkState* network,
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698