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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() { | 686 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() { |
687 return nullptr; | 687 return nullptr; |
688 } | 688 } |
689 | 689 |
690 // Memory ------------------------------------------------------------ | 690 // Memory ------------------------------------------------------------ |
691 | 691 |
692 // Requests purging memory. The platform may or may not purge memory, | 692 // Requests purging memory. The platform may or may not purge memory, |
693 // depending on memory pressure. | 693 // depending on memory pressure. |
694 virtual void RequestPurgeMemory() {} | 694 virtual void RequestPurgeMemory() {} |
695 | 695 |
| 696 // V8 Context Snapshot -------------------------------------------------- |
| 697 |
| 698 virtual bool IsToTakeV8Snapshot() { return false; } |
| 699 |
696 // Feature Policy ----------------------------------------------------- | 700 // Feature Policy ----------------------------------------------------- |
697 | 701 |
698 // Create a new feature policy object for a document, given its parent | 702 // Create a new feature policy object for a document, given its parent |
699 // document's policy (may be nullptr), its container policy (may be empty), | 703 // document's policy (may be nullptr), its container policy (may be empty), |
700 // the header policy with which it was delivered (may be empty), and the | 704 // the header policy with which it was delivered (may be empty), and the |
701 // document's origin. | 705 // document's origin. |
702 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( | 706 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( |
703 const WebFeaturePolicy* parent_policy, | 707 const WebFeaturePolicy* parent_policy, |
704 const WebParsedFeaturePolicy& container_policy, | 708 const WebParsedFeaturePolicy& container_policy, |
705 const WebParsedFeaturePolicy& policy_header, | 709 const WebParsedFeaturePolicy& policy_header, |
706 const WebSecurityOrigin&); | 710 const WebSecurityOrigin&); |
707 | 711 |
708 // Create a new feature policy for a document whose origin has changed, given | 712 // Create a new feature policy for a document whose origin has changed, given |
709 // the previous policy object and the new origin. | 713 // the previous policy object and the new origin. |
710 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( | 714 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( |
711 const WebFeaturePolicy&, | 715 const WebFeaturePolicy&, |
712 const WebSecurityOrigin&); | 716 const WebSecurityOrigin&); |
713 | 717 |
714 protected: | 718 protected: |
715 Platform(); | 719 Platform(); |
716 virtual ~Platform() {} | 720 virtual ~Platform() {} |
717 | 721 |
718 WebThread* main_thread_; | 722 WebThread* main_thread_; |
719 }; | 723 }; |
720 | 724 |
721 } // namespace blink | 725 } // namespace blink |
722 | 726 |
723 #endif | 727 #endif |
OLD | NEW |