| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | // Copyright 2014 The Chromium Authors. All rights reserved.
 | 
					
						
							|  |  |  | // Use of this source code is governed by a BSD-style license that can be
 | 
					
						
							|  |  |  | // found in the LICENSE file.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-22 08:34:31 +01:00
										 |  |  | #ifndef ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 | 
					
						
							|  |  |  | #define ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "storage/browser/quota/special_storage_policy.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-21 17:51:04 +02:00
										 |  |  | namespace electron { | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | class SpecialStoragePolicy : public storage::SpecialStoragePolicy { | 
					
						
							|  |  |  |  public: | 
					
						
							|  |  |  |   SpecialStoragePolicy(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // storage::SpecialStoragePolicy implementation.
 | 
					
						
							|  |  |  |   bool IsStorageProtected(const GURL& origin) override; | 
					
						
							|  |  |  |   bool IsStorageUnlimited(const GURL& origin) override; | 
					
						
							| 
									
										
										
										
											2015-12-07 19:55:01 +08:00
										 |  |  |   bool IsStorageDurable(const GURL& origin) override; | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  |   bool HasIsolatedStorage(const GURL& origin) override; | 
					
						
							| 
									
										
										
										
											2017-04-04 13:43:49 +09:00
										 |  |  |   bool IsStorageSessionOnly(const GURL& origin) override; | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  |   bool HasSessionOnlyOrigins() override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  protected: | 
					
						
							|  |  |  |   ~SpecialStoragePolicy() override; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-21 17:51:04 +02:00
										 |  |  | }  // namespace electron
 | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-22 08:34:31 +01:00
										 |  |  | #endif  // ELECTRON_SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 |