| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // DOMStorageContext implementation. | 34 // DOMStorageContext implementation. |
| 35 virtual void GetUsageInfo(const GetUsageInfoCallback& callback) OVERRIDE; | 35 virtual void GetUsageInfo(const GetUsageInfoCallback& callback) OVERRIDE; |
| 36 virtual void DeleteOrigin(const GURL& origin) OVERRIDE; | 36 virtual void DeleteOrigin(const GURL& origin) OVERRIDE; |
| 37 | 37 |
| 38 // DEPRECATED DOMStorageContext implementation. | 38 // DEPRECATED DOMStorageContext implementation. |
| 39 virtual void GetAllStorageFiles( | 39 virtual void GetAllStorageFiles( |
| 40 const GetAllStorageFilesCallback& callback) OVERRIDE; | 40 const GetAllStorageFilesCallback& callback) OVERRIDE; |
| 41 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE; | 41 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE; |
| 42 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE; | 42 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE; |
| 43 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE; | 43 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE; |
| 44 virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE; | |
| 45 | 44 |
| 46 // Called to free up memory that's not strictly needed. | 45 // Called to free up memory that's not strictly needed. |
| 47 void PurgeMemory(); | 46 void PurgeMemory(); |
| 48 | 47 |
| 49 // Used by content settings to alter the behavior around | 48 // Used by content settings to alter the behavior around |
| 50 // what data to keep and what data to discard at shutdown. | 49 // what data to keep and what data to discard at shutdown. |
| 51 // The policy is not so straight forward to describe, see | 50 // The policy is not so straight forward to describe, see |
| 52 // the implementation for details. | 51 // the implementation for details. |
| 53 void SetClearLocalState(bool clear_local_state); | 52 void SetClearLocalState(bool clear_local_state); |
| 54 void SaveSessionState(); | 53 void SaveSessionState(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 | 66 |
| 68 virtual ~DOMStorageContextImpl(); | 67 virtual ~DOMStorageContextImpl(); |
| 69 dom_storage::DomStorageContext* context() const { return context_.get(); } | 68 dom_storage::DomStorageContext* context() const { return context_.get(); } |
| 70 | 69 |
| 71 scoped_refptr<dom_storage::DomStorageContext> context_; | 70 scoped_refptr<dom_storage::DomStorageContext> context_; |
| 72 | 71 |
| 73 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); | 72 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 75 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
| OLD | NEW |