OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ |
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // Tells the DOMStorageContext to purge any memory it does not need. | 50 // Tells the DOMStorageContext to purge any memory it does not need. |
51 void PurgeMemory(); | 51 void PurgeMemory(); |
52 | 52 |
53 // Tell all children (where applicable) to delete any objects that were | 53 // Tell all children (where applicable) to delete any objects that were |
54 // last modified on or after the following time. | 54 // last modified on or after the following time. |
55 void DeleteDataModifiedSince(const base::Time& cutoff, | 55 void DeleteDataModifiedSince(const base::Time& cutoff, |
56 const char* url_scheme_to_be_skipped, | 56 const char* url_scheme_to_be_skipped, |
57 const std::vector<string16>& protected_origins); | 57 const std::vector<string16>& protected_origins); |
58 | 58 |
59 // Delete the session storage namespace associated with this id. Called from | 59 // Delete the session storage namespace associated with this id. Can be |
60 // the UI thread. | 60 // called from any thread. |
61 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id); | 61 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id); |
62 | 62 |
63 private: | 63 private: |
64 friend class base::RefCountedThreadSafe<WebKitContext>; | 64 friend class base::RefCountedThreadSafe<WebKitContext>; |
65 ~WebKitContext(); | 65 ~WebKitContext(); |
66 | 66 |
67 // Copies of profile data that can be accessed on any thread. | 67 // Copies of profile data that can be accessed on any thread. |
68 const FilePath data_path_; | 68 const FilePath data_path_; |
69 const bool is_incognito_; | 69 const bool is_incognito_; |
70 | 70 |
71 scoped_ptr<DOMStorageContext> dom_storage_context_; | 71 scoped_ptr<DOMStorageContext> dom_storage_context_; |
72 | 72 |
73 scoped_ptr<IndexedDBContext> indexed_db_context_; | 73 scoped_ptr<IndexedDBContext> indexed_db_context_; |
74 | 74 |
75 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ | 78 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ |
OLD | NEW |