Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: content/public/browser/dom_storage_context.h

Issue 2403713002: Add suborigin logic to url::Origin (Closed)
Patch Set: Fix unit test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/url_schemes.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Returns a collection of origins using local storage to the given callback. 33 // Returns a collection of origins using local storage to the given callback.
34 virtual void GetLocalStorageUsage( 34 virtual void GetLocalStorageUsage(
35 const GetLocalStorageUsageCallback& callback) = 0; 35 const GetLocalStorageUsageCallback& callback) = 0;
36 36
37 // Returns a collection of origins using session storage to the given 37 // Returns a collection of origins using session storage to the given
38 // callback. 38 // callback.
39 virtual void GetSessionStorageUsage( 39 virtual void GetSessionStorageUsage(
40 const GetSessionStorageUsageCallback& callback) = 0; 40 const GetSessionStorageUsageCallback& callback) = 0;
41 41
42 // Deletes the local storage data for the given origin. 42 // Deletes the local storage data for the physical origin of |origin_url|,
43 virtual void DeleteLocalStorage(const GURL& origin) = 0; 43 // including all suborigins at the physical origin.
44 //
45 // See https://w3c.github.io/webappsec-suborigins/.
46 virtual void DeleteLocalStorageForPhysicalOrigin(const GURL& origin_url) = 0;
47
48 // Deletes the local storage for the origin of |origin_url|.
49 virtual void DeleteLocalStorage(const GURL& origin_url) = 0;
44 50
45 // Deletes the session storage data identified by |usage_info|. 51 // Deletes the session storage data identified by |usage_info|.
46 virtual void DeleteSessionStorage( 52 virtual void DeleteSessionStorage(
47 const SessionStorageUsageInfo& usage_info) = 0; 53 const SessionStorageUsageInfo& usage_info) = 0;
48 54
49 // If this is called, sessionStorage data will be stored on disk, and can be 55 // If this is called, sessionStorage data will be stored on disk, and can be
50 // restored after a browser restart (with RecreateSessionStorage). This 56 // restored after a browser restart (with RecreateSessionStorage). This
51 // function must be called right after DOMStorageContextWrapper is created, 57 // function must be called right after DOMStorageContextWrapper is created,
52 // and before it's used. 58 // and before it's used.
53 virtual void SetSaveSessionStorageOnDisk() = 0; 59 virtual void SetSaveSessionStorageOnDisk() = 0;
(...skipping 10 matching lines...) Expand all
64 // been created after a session restore, or a session restore won't happen. 70 // been created after a session restore, or a session restore won't happen.
65 virtual void StartScavengingUnusedSessionStorage() = 0; 71 virtual void StartScavengingUnusedSessionStorage() = 0;
66 72
67 protected: 73 protected:
68 virtual ~DOMStorageContext() {} 74 virtual ~DOMStorageContext() {}
69 }; 75 };
70 76
71 } // namespace content 77 } // namespace content
72 78
73 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ 79 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/common/url_schemes.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698