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

Unified Diff: mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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
Index: mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom
diff --git a/mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom b/mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom
index ebd6934ccedb106634b832c07ba5b9e6840f1a83..3e7a46e7b6937047e8f85e388f94537ae858f32c 100644
--- a/mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom
+++ b/mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom
@@ -18,44 +18,45 @@ import "mojo/public/interfaces/network/url_response.mojom";
[ServiceName="mojo::URLResponseDiskCache"]
interface URLResponseDiskCache {
viettrungluu 2016/03/15 23:14:50 I wonder if we should have it delete a non-standar
azani 2016/03/23 22:42:51 Done.
- // Given an URL, returns a tuple. If the |url| is not in the cache, all the
- // response parameters are null. Otherwise |response| is the cached response
- // stripped of the body, |file_path| is a file containing the body of the
- // response and |cache_dir_path| is a directory that the applicaton can use
- // to store content. This service guarantee that |cache_dir_path| will be
- // emptied when |file_path| content changes. For example, a content handler
- // that is backed by a VM that compiles files could have the VM use this
- // directory to cache the compiled files. After |Get| has been called and a
- // response is returned, the caller must call |Validate| or |Update| to
- // revalidate the entry. If this is not done, a future call to |Get| may
- // return null.
- Get(string url) => (mojo.URLResponse? response,
- array<uint8>? file_path,
- array<uint8>? cache_dir_path);
-
- // Validate the cache for the given |url|. This will enforce that |Get| will
- // return an entry if it exists.
- Validate(string url);
-
- // Update the cache with the given response.
- Update(mojo.URLResponse response);
-
- // Given a URLResponse, updates the cache and returns a pair of paths.
- // |file_path| is a file containing the body of the response.
- // |cache_dir_path| is a directory that the applicaton can use to store
- // content. This service guarantee that |cache_dir_path| will be emptied
- // when |file_path| content changes. For example, a content handler that is
- // backed by a VM that compiles files could have the VM use this directory
- // to cache the compiled files.
- UpdateAndGet(mojo.URLResponse response) =>
- (array<uint8>? file_path, array<uint8>? cache_dir_path);
-
- // Given a URLResponse that is expected to have a zipped body, updates the
- // cache and returns a pair of paths. |extracted_dir_path| is a directory
- // containing the unzipped body of the response. |cache_dir_path| is a
- // directory that the applicaton can use to store content. This service
- // guarantee that |cache_dir_path| will be emptied when |extracted_dir_path|
- // content changes.
- UpdateAndGetExtracted(mojo.URLResponse response) =>
- (array<uint8>? extracted_dir_path, array<uint8>? cache_dir_path);
+ // Given an URL, returns a tuple. If the |url| is not in the cache, all the
+ // response parameters are null. Otherwise |response| is the cached response
+ // stripped of the body, |file_path| is a file containing the body of the
+ // response and |cache_dir_path| is a directory that the applicaton can use
+ // to store content. This service guarantee that |cache_dir_path| will be
+ // emptied when |file_path| content changes. For example, a content handler
+ // that is backed by a VM that compiles files could have the VM use this
+ // directory to cache the compiled files. After |Get| has been called and a
+ // response is returned, the caller must call |Validate| or |Update| to
+ // revalidate the entry. If this is not done, a future call to |Get| may
+ // return null.
+ Get(string url)
+ => (mojo.URLResponse? response,
+ array<uint8>? file_path,
+ array<uint8>? cache_dir_path);
+
+ // Validate the cache for the given |url|. This will enforce that |Get| will
+ // return an entry if it exists.
+ Validate(string url);
+
+ // Update the cache with the given response.
+ Update(mojo.URLResponse response);
+
+ // Given a URLResponse, updates the cache and returns a pair of paths.
+ // |file_path| is a file containing the body of the response.
+ // |cache_dir_path| is a directory that the applicaton can use to store
+ // content. This service guarantee that |cache_dir_path| will be emptied
+ // when |file_path| content changes. For example, a content handler that is
+ // backed by a VM that compiles files could have the VM use this directory
+ // to cache the compiled files.
+ UpdateAndGet(mojo.URLResponse response)
+ => (array<uint8>? file_path, array<uint8>? cache_dir_path);
+
+ // Given a URLResponse that is expected to have a zipped body, updates the
+ // cache and returns a pair of paths. |extracted_dir_path| is a directory
+ // containing the unzipped body of the response. |cache_dir_path| is a
+ // directory that the applicaton can use to store content. This service
+ // guarantee that |cache_dir_path| will be emptied when |extracted_dir_path|
+ // content changes.
+ UpdateAndGetExtracted(mojo.URLResponse response)
+ => (array<uint8>? extracted_dir_path, array<uint8>? cache_dir_path);
};

Powered by Google App Engine
This is Rietveld 408576698