OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_PLUGIN_PRIVATE_STORAGE_HELPER_H_ | |
6 #define CONTENT_BROWSER_PLUGIN_PRIVATE_STORAGE_HELPER_H_ | |
7 | |
8 #if !defined(ENABLE_PLUGINS) | |
9 #error This file should only be included when plugins are enabled. | |
10 #endif | |
11 | |
12 #include "base/callback_forward.h" | |
13 #include "base/memory/ref_counted.h" | |
14 #include "base/time/time.h" | |
15 #include "url/gurl.h" | |
16 | |
17 namespace storage { | |
18 class FileSystemContext; | |
19 } | |
20 | |
21 namespace content { | |
22 | |
23 // Clear the plugin private filesystem data in |filesystem_context| for | |
24 // |storage_origin| if any file has a last modified time between |begin| | |
25 // and |end|. If |storage_origin| is not specified, then all available | |
26 // origins are checked. |callback| is called when the operation is complete. | |
xhwang
2016/06/02 23:51:45
s/checked/cleared
jrummell
2016/06/08 23:44:08
All origins are checked for file in the required t
| |
27 // This must be called on the file task runner. | |
28 void ClearPluginPrivateDataOnFileTaskRunner( | |
29 scoped_refptr<storage::FileSystemContext> filesystem_context, | |
30 const GURL& storage_origin, | |
31 const base::Time begin, | |
32 const base::Time end, | |
33 const base::Closure& callback); | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_BROWSER_PLUGIN_PRIVATE_STORAGE_HELPER_H_ | |
OLD | NEW |