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..9f058a4fee462163a4572fddc5b1dae6f68f0dea 100644 |
| --- a/mojo/services/network/network_context.h |
| +++ b/mojo/services/network/network_context.h |
| @@ -8,7 +8,9 @@ |
| #include <set> |
| #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,9 +26,15 @@ 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); |
| + |
| explicit NetworkContext( |
| scoped_ptr<net::URLRequestContext> url_request_context); |
| - explicit NetworkContext(const base::FilePath& base_path); |
| + NetworkContext(const base::FilePath& base_path); |
|
qsr
2015/09/16 13:27:05
Why did you remove this explicit?
ppi
2015/09/16 14:20:59
accident:). Done.
|
| ~NetworkContext(); |
| net::URLRequestContext* url_request_context() { |