Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: public/platform/Platform.h

Issue 1111383002: [tracing] Expose memory-infra tracing infrastructure to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrapping at 80 cols Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class WebFileUtilities; 76 class WebFileUtilities;
77 class WebFlingAnimator; 77 class WebFlingAnimator;
78 class WebGeofencingProvider; 78 class WebGeofencingProvider;
79 class WebGestureCurve; 79 class WebGestureCurve;
80 class WebGraphicsContext3DProvider; 80 class WebGraphicsContext3DProvider;
81 class WebIDBFactory; 81 class WebIDBFactory;
82 class WebMIDIAccessor; 82 class WebMIDIAccessor;
83 class WebMIDIAccessorClient; 83 class WebMIDIAccessorClient;
84 class WebMediaStreamCenter; 84 class WebMediaStreamCenter;
85 class WebMediaStreamCenterClient; 85 class WebMediaStreamCenterClient;
86 class WebMemoryDumpProvider;
86 class WebMessagePortChannel; 87 class WebMessagePortChannel;
87 class WebMimeRegistry; 88 class WebMimeRegistry;
88 class WebNavigatorConnectProvider; 89 class WebNavigatorConnectProvider;
89 class WebNotificationManager; 90 class WebNotificationManager;
90 class WebPermissionClient; 91 class WebPermissionClient;
91 class WebPluginListBuilder; 92 class WebPluginListBuilder;
92 class WebPrescientNetworking; 93 class WebPrescientNetworking;
93 class WebPublicSuffixList; 94 class WebPublicSuffixList;
94 class WebPushProvider; 95 class WebPushProvider;
95 class WebRTCPeerConnectionHandler; 96 class WebRTCPeerConnectionHandler;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. 550 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
550 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } 551 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
551 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. 552 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
552 virtual void histogramSparse(const char* name, int sample) { } 553 virtual void histogramSparse(const char* name, int sample) { }
553 554
554 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 555 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor.
555 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. 556 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url.
556 virtual void recordRappor(const char* metric, const WebString& sample) { } 557 virtual void recordRappor(const char* metric, const WebString& sample) { }
557 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 558 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
558 559
560 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
561 // method will be called on the same thread that called the
562 // registerMemoryDumpProvider() method.
563 // See crbug.com/458295 for design docs.
564 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
565
566 // Must be called on the thread that called registerMemoryDumpProvider().
567 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
568
559 // GPU ---------------------------------------------------------------- 569 // GPU ----------------------------------------------------------------
560 // 570 //
561 // May return null if GPU is not supported. 571 // May return null if GPU is not supported.
562 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 572 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
563 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. 573 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
564 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; } 574 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; }
565 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; } 575 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; }
566 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } 576 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; }
567 577
568 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 578 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 protected: 694 protected:
685 BLINK_PLATFORM_EXPORT Platform(); 695 BLINK_PLATFORM_EXPORT Platform();
686 virtual ~Platform() { } 696 virtual ~Platform() { }
687 697
688 WebThread* m_mainThread; 698 WebThread* m_mainThread;
689 }; 699 };
690 700
691 } // namespace blink 701 } // namespace blink
692 702
693 #endif 703 #endif
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698