Chromium Code Reviews| 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); |