OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } | 678 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } |
679 | 679 |
680 // Memory ------------------------------------------------------------ | 680 // Memory ------------------------------------------------------------ |
681 | 681 |
682 // Requests purging memory. The platform may or may not purge memory, | 682 // Requests purging memory. The platform may or may not purge memory, |
683 // depending on memory pressure. | 683 // depending on memory pressure. |
684 virtual void requestPurgeMemory() {} | 684 virtual void requestPurgeMemory() {} |
685 | 685 |
686 // Feature Policy ----------------------------------------------------- | 686 // Feature Policy ----------------------------------------------------- |
687 | 687 |
| 688 // Create a new feature policy object for a document, given its parent |
| 689 // document's policy (may be nullptr), its container policy (may be empty), |
| 690 // the header policy with which it was delivered (may be empty), and the |
| 691 // document's origin. |
688 virtual WebFeaturePolicy* createFeaturePolicy( | 692 virtual WebFeaturePolicy* createFeaturePolicy( |
689 const WebFeaturePolicy* parentPolicy, | 693 const WebFeaturePolicy* parentPolicy, |
690 const WebParsedFeaturePolicyHeader& containerPolicy, | 694 const WebParsedFeaturePolicyHeader& containerPolicy, |
691 const WebParsedFeaturePolicyHeader& policyHeader, | 695 const WebParsedFeaturePolicyHeader& policyHeader, |
692 const WebSecurityOrigin&) { | 696 const WebSecurityOrigin&) { |
693 return nullptr; | 697 return nullptr; |
694 } | 698 } |
695 virtual void resetFeaturePolicyOrigin(WebFeaturePolicy* parentPolicy, | 699 |
696 const WebSecurityOrigin&) {} | 700 // Create a new feature policy for a document whose origin has changed, given |
| 701 // the previous policy object and the new origin. |
| 702 virtual WebFeaturePolicy* duplicateFeaturePolicyWithOrigin( |
| 703 const WebFeaturePolicy&, |
| 704 const WebSecurityOrigin&) { |
| 705 return nullptr; |
| 706 } |
697 | 707 |
698 protected: | 708 protected: |
699 Platform(); | 709 Platform(); |
700 virtual ~Platform() {} | 710 virtual ~Platform() {} |
701 | 711 |
702 WebThread* m_mainThread; | 712 WebThread* m_mainThread; |
703 }; | 713 }; |
704 | 714 |
705 } // namespace blink | 715 } // namespace blink |
706 | 716 |
707 #endif | 717 #endif |
OLD | NEW |