 Chromium Code Reviews
 Chromium Code Reviews Issue 1900793003:
  Allow to clear session and local storage when not backed on disk  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1900793003:
  Allow to clear session and local storage when not backed on disk  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_NAMESPACE_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ | 
| 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ | 
| 7 | 7 | 
| 8 #include <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <map> | 10 #include <map> | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 // optional backing on disk via |session_storage_database| (may be NULL). | 45 // optional backing on disk via |session_storage_database| (may be NULL). | 
| 46 DOMStorageNamespace(int64_t namespace_id, | 46 DOMStorageNamespace(int64_t namespace_id, | 
| 47 const std::string& persistent_namespace_id, | 47 const std::string& persistent_namespace_id, | 
| 48 SessionStorageDatabase* session_storage_database, | 48 SessionStorageDatabase* session_storage_database, | 
| 49 DOMStorageTaskRunner* task_runner); | 49 DOMStorageTaskRunner* task_runner); | 
| 50 | 50 | 
| 51 int64_t namespace_id() const { return namespace_id_; } | 51 int64_t namespace_id() const { return namespace_id_; } | 
| 52 const std::string& persistent_namespace_id() const { | 52 const std::string& persistent_namespace_id() const { | 
| 53 return persistent_namespace_id_; | 53 return persistent_namespace_id_; | 
| 54 } | 54 } | 
| 55 void ReadOrigins(std::vector<GURL>* origins) const; | |
| 
michaeln
2016/05/05 00:38:23
Can you rename to GetOriginsWithAreas()?
The more
 
Julien Isorce Samsung
2016/05/05 11:05:04
Done.
 | |
| 55 | 56 | 
| 56 // Returns the storage area for the given origin, | 57 // Returns the storage area for the given origin, | 
| 57 // creating instance if needed. Each call to open | 58 // creating instance if needed. Each call to open | 
| 58 // must be balanced with a call to CloseStorageArea. | 59 // must be balanced with a call to CloseStorageArea. | 
| 59 DOMStorageArea* OpenStorageArea(const GURL& origin); | 60 DOMStorageArea* OpenStorageArea(const GURL& origin); | 
| 60 void CloseStorageArea(DOMStorageArea* area); | 61 void CloseStorageArea(DOMStorageArea* area); | 
| 61 | 62 | 
| 62 // Returns the area for |origin| if it's open, otherwise NULL. | 63 // Returns the area for |origin| if it's open, otherwise NULL. | 
| 63 DOMStorageArea* GetOpenStorageArea(const GURL& origin); | 64 DOMStorageArea* GetOpenStorageArea(const GURL& origin); | 
| 64 | 65 | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 base::FilePath directory_; | 102 base::FilePath directory_; | 
| 102 AreaMap areas_; | 103 AreaMap areas_; | 
| 103 scoped_refptr<DOMStorageTaskRunner> task_runner_; | 104 scoped_refptr<DOMStorageTaskRunner> task_runner_; | 
| 104 scoped_refptr<SessionStorageDatabase> session_storage_database_; | 105 scoped_refptr<SessionStorageDatabase> session_storage_database_; | 
| 105 }; | 106 }; | 
| 106 | 107 | 
| 107 } // namespace content | 108 } // namespace content | 
| 108 | 109 | 
| 109 | 110 | 
| 110 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ | 111 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ | 
| OLD | NEW |