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