Index: shell/application_manager/network_fetcher.h |
diff --git a/shell/application_manager/network_fetcher.h b/shell/application_manager/network_fetcher.h |
index 2ef483be2ca1cdd2c366e5bafe0462fe5a08ef2a..6161dd801542c319bf3d44676a2eebf1a26bcc70 100644 |
--- a/shell/application_manager/network_fetcher.h |
+++ b/shell/application_manager/network_fetcher.h |
@@ -49,20 +49,27 @@ class NetworkFetcher : public Fetcher { |
// are not loaded from cache to allow effective development. |
bool CanLoadDirectlyFromCache(); |
- void LoadFromCache(bool schedule_update); |
+ // Tries to load the URL directly from the offline cache. |
+ void LoadFromCache(); |
- void OnCachedResponseReceived(bool schedule_update, |
- mojo::URLResponsePtr response, |
- mojo::Array<uint8_t> path_as_array, |
- mojo::Array<uint8_t> cache_dir); |
+ // Callback from the offline cache. |
+ void OnResponseReceived(bool schedule_update, |
+ mojo::URLResponsePtr response, |
+ mojo::Array<uint8_t> path_as_array, |
+ mojo::Array<uint8_t> cache_dir); |
+ // Start a network request to load the URL. |
void StartNetworkRequest(); |
+ // Callback from the network stack. |
void OnLoadComplete(mojo::URLResponsePtr response); |
- void OnFileSavedToCache(mojo::Array<uint8_t> path_as_array, |
+ // Callback from the offline cache when the response is saved by the cache. |
+ void OnFileSavedToCache(mojo::URLResponsePtr response, |
+ mojo::Array<uint8_t> path_as_array, |
mojo::Array<uint8_t> cache_dir); |
+ // Record the mapping from URLs to files. |
static void RecordCacheToURLMapping(const base::FilePath& path, |
const GURL& url); |