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

Unified Diff: mojo/services/network/network_context.h

Issue 1344853002: Teach the network service to clear its disk cache if requested. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/services/network/network_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/network_context.h
diff --git a/mojo/services/network/network_context.h b/mojo/services/network/network_context.h
index 96e8d684457efeee1fd1f181f9515477bb0639b9..c742f488f87054669abf5a034a2efc087d9bc15b 100644
--- a/mojo/services/network/network_context.h
+++ b/mojo/services/network/network_context.h
@@ -7,8 +7,11 @@
#include <set>
+#include "base/callback.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/task_runner.h"
namespace base {
class FilePath;
@@ -24,6 +27,13 @@ class URLLoaderImpl;
class NetworkContext {
public:
+ // Cleares the cached content. The actual deletion will be performed using the
+ // given task runner, but cache appears as cleared immediately after the
+ // function returns.
+ static void ClearCache(const base::FilePath& base_path,
+ scoped_refptr<base::TaskRunner> task_runner,
+ base::Closure clear_finished_callback);
qsr 2015/09/16 14:23:19 const base::Closure&
ppi 2015/09/16 14:29:16 Done.
+
explicit NetworkContext(
scoped_ptr<net::URLRequestContext> url_request_context);
explicit NetworkContext(const base::FilePath& base_path);
« no previous file with comments | « no previous file | mojo/services/network/network_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698