| 
									
										
										
										
											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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-19 13:56:58 -07:00
										 |  |  | #ifndef SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 | 
					
						
							|  |  |  | #define SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "storage/browser/quota/special_storage_policy.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-19 14:23:04 -07: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; | 
					
						
							| 
									
										
										
										
											2020-07-13 18:13:34 -07:00
										 |  |  |   network::DeleteCookiePredicate CreateDeleteCookieOnExitPredicate() override; | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |  protected: | 
					
						
							|  |  |  |   ~SpecialStoragePolicy() override; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-19 14:23:04 -07:00
										 |  |  | }  // namespace electron
 | 
					
						
							| 
									
										
										
										
											2015-10-12 21:09:39 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-19 13:56:58 -07:00
										 |  |  | #endif  // SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
 |