| 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() { | 694 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() { |
| 695 return nullptr; | 695 return nullptr; |
| 696 } | 696 } |
| 697 | 697 |
| 698 // Memory ------------------------------------------------------------ | 698 // Memory ------------------------------------------------------------ |
| 699 | 699 |
| 700 // Requests purging memory. The platform may or may not purge memory, | 700 // Requests purging memory. The platform may or may not purge memory, |
| 701 // depending on memory pressure. | 701 // depending on memory pressure. |
| 702 virtual void RequestPurgeMemory() {} | 702 virtual void RequestPurgeMemory() {} |
| 703 | 703 |
| 704 // V8 Context Snapshot -------------------------------------------------- |
| 705 |
| 706 // This method returns true only when |
| 707 // tools/v8_context_snapshot/v8_context_snapshot_generator is running (which |
| 708 // runs during Chromium's build step). |
| 709 virtual bool IsTakingV8ContextSnapshot() { return false; } |
| 710 |
| 704 // Feature Policy ----------------------------------------------------- | 711 // Feature Policy ----------------------------------------------------- |
| 705 | 712 |
| 706 // Create a new feature policy object for a document, given its parent | 713 // Create a new feature policy object for a document, given its parent |
| 707 // document's policy (may be nullptr), its container policy (may be empty), | 714 // document's policy (may be nullptr), its container policy (may be empty), |
| 708 // the header policy with which it was delivered (may be empty), and the | 715 // the header policy with which it was delivered (may be empty), and the |
| 709 // document's origin. | 716 // document's origin. |
| 710 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( | 717 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( |
| 711 const WebFeaturePolicy* parent_policy, | 718 const WebFeaturePolicy* parent_policy, |
| 712 const WebParsedFeaturePolicy& container_policy, | 719 const WebParsedFeaturePolicy& container_policy, |
| 713 const WebParsedFeaturePolicy& policy_header, | 720 const WebParsedFeaturePolicy& policy_header, |
| 714 const WebSecurityOrigin&); | 721 const WebSecurityOrigin&); |
| 715 | 722 |
| 716 // Create a new feature policy for a document whose origin has changed, given | 723 // Create a new feature policy for a document whose origin has changed, given |
| 717 // the previous policy object and the new origin. | 724 // the previous policy object and the new origin. |
| 718 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( | 725 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( |
| 719 const WebFeaturePolicy&, | 726 const WebFeaturePolicy&, |
| 720 const WebSecurityOrigin&); | 727 const WebSecurityOrigin&); |
| 721 | 728 |
| 722 protected: | 729 protected: |
| 723 Platform(); | 730 Platform(); |
| 724 virtual ~Platform() {} | 731 virtual ~Platform() {} |
| 725 | 732 |
| 726 WebThread* main_thread_; | 733 WebThread* main_thread_; |
| 727 }; | 734 }; |
| 728 | 735 |
| 729 } // namespace blink | 736 } // namespace blink |
| 730 | 737 |
| 731 #endif | 738 #endif |
| OLD | NEW |