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