Chromium Code Reviews| 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 virtual bool IsToTakeV8Snapshot() { return false; } | |
|
haraken
2017/07/04 15:04:20
IsTakingV8ContextSnapshot ?
peria
2017/07/07 06:22:04
Done.
| |
| 707 | |
| 704 // Feature Policy ----------------------------------------------------- | 708 // Feature Policy ----------------------------------------------------- |
| 705 | 709 |
| 706 // Create a new feature policy object for a document, given its parent | 710 // 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), | 711 // 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 | 712 // the header policy with which it was delivered (may be empty), and the |
| 709 // document's origin. | 713 // document's origin. |
| 710 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( | 714 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( |
| 711 const WebFeaturePolicy* parent_policy, | 715 const WebFeaturePolicy* parent_policy, |
| 712 const WebParsedFeaturePolicy& container_policy, | 716 const WebParsedFeaturePolicy& container_policy, |
| 713 const WebParsedFeaturePolicy& policy_header, | 717 const WebParsedFeaturePolicy& policy_header, |
| 714 const WebSecurityOrigin&); | 718 const WebSecurityOrigin&); |
| 715 | 719 |
| 716 // Create a new feature policy for a document whose origin has changed, given | 720 // Create a new feature policy for a document whose origin has changed, given |
| 717 // the previous policy object and the new origin. | 721 // the previous policy object and the new origin. |
| 718 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( | 722 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( |
| 719 const WebFeaturePolicy&, | 723 const WebFeaturePolicy&, |
| 720 const WebSecurityOrigin&); | 724 const WebSecurityOrigin&); |
| 721 | 725 |
| 722 protected: | 726 protected: |
| 723 Platform(); | 727 Platform(); |
| 724 virtual ~Platform() {} | 728 virtual ~Platform() {} |
| 725 | 729 |
| 726 WebThread* main_thread_; | 730 WebThread* main_thread_; |
| 727 }; | 731 }; |
| 728 | 732 |
| 729 } // namespace blink | 733 } // namespace blink |
| 730 | 734 |
| 731 #endif | 735 #endif |
| OLD | NEW |