| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 class WebImageCaptureFrameGrabber; | 84 class WebImageCaptureFrameGrabber; |
| 85 class WebInstalledApp; | 85 class WebInstalledApp; |
| 86 class WebMIDIAccessor; | 86 class WebMIDIAccessor; |
| 87 class WebMIDIAccessorClient; | 87 class WebMIDIAccessorClient; |
| 88 class WebMediaPlayer; | 88 class WebMediaPlayer; |
| 89 class WebMediaRecorderHandler; | 89 class WebMediaRecorderHandler; |
| 90 class WebMediaStream; | 90 class WebMediaStream; |
| 91 class WebMediaStreamCenter; | 91 class WebMediaStreamCenter; |
| 92 class WebMediaStreamCenterClient; | 92 class WebMediaStreamCenterClient; |
| 93 class WebMediaStreamTrack; | 93 class WebMediaStreamTrack; |
| 94 class WebMemoryDumpProvider; | |
| 95 class WebMessagePortChannel; | 94 class WebMessagePortChannel; |
| 96 class WebMimeRegistry; | 95 class WebMimeRegistry; |
| 97 class WebNotificationManager; | 96 class WebNotificationManager; |
| 98 class WebPermissionClient; | 97 class WebPermissionClient; |
| 99 class WebPluginListBuilder; | 98 class WebPluginListBuilder; |
| 100 class WebPrescientNetworking; | 99 class WebPrescientNetworking; |
| 101 class WebProcessMemoryDump; | 100 class WebProcessMemoryDump; |
| 102 class WebPublicSuffixList; | 101 class WebPublicSuffixList; |
| 103 class WebPushProvider; | 102 class WebPushProvider; |
| 104 class WebRTCCertificateGenerator; | 103 class WebRTCCertificateGenerator; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. | 410 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. |
| 412 virtual void recordRappor(const char* metric, const WebString& sample) { } | 411 virtual void recordRappor(const char* metric, const WebString& sample) { } |
| 413 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} | 412 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} |
| 414 | 413 |
| 415 // Record a UMA sequence action. The UserMetricsAction construction must | 414 // Record a UMA sequence action. The UserMetricsAction construction must |
| 416 // be on a single line for extract_actions.py to find it. Please see | 415 // be on a single line for extract_actions.py to find it. Please see |
| 417 // that script for more details. Intended use is: | 416 // that script for more details. Intended use is: |
| 418 // recordAction(UserMetricsAction("MyAction")) | 417 // recordAction(UserMetricsAction("MyAction")) |
| 419 virtual void recordAction(const UserMetricsAction&) { } | 418 virtual void recordAction(const UserMetricsAction&) { } |
| 420 | 419 |
| 421 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump | |
| 422 // method will be called on the same thread that called the | |
| 423 // registerMemoryDumpProvider() method. |name| is used for debugging | |
| 424 // (duplicates are allowed) and must be a long-lived C string. | |
| 425 // See crbug.com/458295 for design docs. | |
| 426 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const
char* name); | |
| 427 | |
| 428 // Must be called on the thread that called registerMemoryDumpProvider(). | |
| 429 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*); | |
| 430 | |
| 431 class TraceLogEnabledStateObserver { | 420 class TraceLogEnabledStateObserver { |
| 432 public: | 421 public: |
| 433 virtual ~TraceLogEnabledStateObserver() = default; | 422 virtual ~TraceLogEnabledStateObserver() = default; |
| 434 virtual void onTraceLogEnabled() = 0; | 423 virtual void onTraceLogEnabled() = 0; |
| 435 virtual void onTraceLogDisabled() = 0; | 424 virtual void onTraceLogDisabled() = 0; |
| 436 }; | 425 }; |
| 437 | 426 |
| 438 // Register or unregister a trace log state observer. Does not take ownershi
p. | 427 // Register or unregister a trace log state observer. Does not take ownershi
p. |
| 439 virtual void addTraceLogEnabledStateObserver(TraceLogEnabledStateObserver*)
{} | 428 virtual void addTraceLogEnabledStateObserver(TraceLogEnabledStateObserver*)
{} |
| 440 virtual void removeTraceLogEnabledStateObserver(TraceLogEnabledStateObserver
*) {} | 429 virtual void removeTraceLogEnabledStateObserver(TraceLogEnabledStateObserver
*) {} |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 protected: | 603 protected: |
| 615 Platform(); | 604 Platform(); |
| 616 virtual ~Platform() { } | 605 virtual ~Platform() { } |
| 617 | 606 |
| 618 WebThread* m_mainThread; | 607 WebThread* m_mainThread; |
| 619 }; | 608 }; |
| 620 | 609 |
| 621 } // namespace blink | 610 } // namespace blink |
| 622 | 611 |
| 623 #endif | 612 #endif |
| OLD | NEW |