| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 class WebFlingAnimator; | 78 class WebFlingAnimator; |
| 79 class WebGeofencingProvider; | 79 class WebGeofencingProvider; |
| 80 class WebGestureCurve; | 80 class WebGestureCurve; |
| 81 class WebGraphicsContext3DProvider; | 81 class WebGraphicsContext3DProvider; |
| 82 class WebIDBFactory; | 82 class WebIDBFactory; |
| 83 class WebMIDIAccessor; | 83 class WebMIDIAccessor; |
| 84 class WebMIDIAccessorClient; | 84 class WebMIDIAccessorClient; |
| 85 class WebMediaRecorderHandler; | 85 class WebMediaRecorderHandler; |
| 86 class WebMediaStreamCenter; | 86 class WebMediaStreamCenter; |
| 87 class WebMediaStreamCenterClient; | 87 class WebMediaStreamCenterClient; |
| 88 class WebMemoryDumpProvider; | |
| 89 class WebMessagePortChannel; | 88 class WebMessagePortChannel; |
| 90 class WebMimeRegistry; | 89 class WebMimeRegistry; |
| 91 class WebNavigatorConnectProvider; | 90 class WebNavigatorConnectProvider; |
| 92 class WebNotificationManager; | 91 class WebNotificationManager; |
| 93 class WebPermissionClient; | 92 class WebPermissionClient; |
| 94 class WebPluginListBuilder; | 93 class WebPluginListBuilder; |
| 95 class WebPrescientNetworking; | 94 class WebPrescientNetworking; |
| 96 class WebProcessMemoryDump; | |
| 97 class WebPublicSuffixList; | 95 class WebPublicSuffixList; |
| 98 class WebPushProvider; | 96 class WebPushProvider; |
| 99 class WebRTCPeerConnectionHandler; | 97 class WebRTCPeerConnectionHandler; |
| 100 class WebRTCPeerConnectionHandlerClient; | 98 class WebRTCPeerConnectionHandlerClient; |
| 101 class WebSandboxSupport; | 99 class WebSandboxSupport; |
| 102 class WebScrollbarBehavior; | 100 class WebScrollbarBehavior; |
| 103 class WebSecurityOrigin; | 101 class WebSecurityOrigin; |
| 104 class WebServicePortProvider; | 102 class WebServicePortProvider; |
| 105 class WebServicePortProviderClient; | 103 class WebServicePortProviderClient; |
| 106 class WebServiceWorkerCacheStorage; | 104 class WebServiceWorkerCacheStorage; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. | 565 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. |
| 568 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } | 566 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } |
| 569 // Unlike enumeration histograms, sparse histograms only allocate memory for
non-empty buckets. | 567 // Unlike enumeration histograms, sparse histograms only allocate memory for
non-empty buckets. |
| 570 virtual void histogramSparse(const char* name, int sample) { } | 568 virtual void histogramSparse(const char* name, int sample) { } |
| 571 | 569 |
| 572 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. | 570 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. |
| 573 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. | 571 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. |
| 574 virtual void recordRappor(const char* metric, const WebString& sample) { } | 572 virtual void recordRappor(const char* metric, const WebString& sample) { } |
| 575 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} | 573 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} |
| 576 | 574 |
| 577 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump | |
| 578 // method will be called on the same thread that called the | |
| 579 // registerMemoryDumpProvider() method. | |
| 580 // See crbug.com/458295 for design docs. | |
| 581 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } | |
| 582 | |
| 583 // Must be called on the thread that called registerMemoryDumpProvider(). | |
| 584 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } | |
| 585 | |
| 586 // Returns a newly allocated WebProcessMemoryDump instance. | |
| 587 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null
ptr; } | |
| 588 | |
| 589 typedef uint64_t WebMemoryAllocatorDumpGuid; | |
| 590 | |
| 591 // Returns guid corresponding to the given string (the hash value) for | |
| 592 // creating a WebMemoryAllocatorDump. | |
| 593 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We
bString& guidStr) { return 0; } | |
| 594 | |
| 595 // GPU ---------------------------------------------------------------- | 575 // GPU ---------------------------------------------------------------- |
| 596 // | 576 // |
| 597 // May return null if GPU is not supported. | 577 // May return null if GPU is not supported. |
| 598 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. | 578 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in
stance. |
| 599 // Passing an existing context to shareContext will create the new context i
n the same share group as the passed context. | 579 // Passing an existing context to shareContext will create the new context i
n the same share group as the passed context. |
| 600 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr
; } | 580 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr
; } |
| 601 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf
o) { return nullptr; } | 581 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf
o) { return nullptr; } |
| 602 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return nullptr; } | 582 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap
hicsContext3D::Attributes&) { return nullptr; } |
| 603 | 583 |
| 604 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null | 584 // Returns a newly allocated and initialized offscreen context provider. The
provider may return a null |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 protected: | 721 protected: |
| 742 BLINK_PLATFORM_EXPORT Platform(); | 722 BLINK_PLATFORM_EXPORT Platform(); |
| 743 virtual ~Platform() { } | 723 virtual ~Platform() { } |
| 744 | 724 |
| 745 WebThread* m_mainThread; | 725 WebThread* m_mainThread; |
| 746 }; | 726 }; |
| 747 | 727 |
| 748 } // namespace blink | 728 } // namespace blink |
| 749 | 729 |
| 750 #endif | 730 #endif |
| OLD | NEW |