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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. | 451 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. |
| 452 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. | 452 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. |
| 453 virtual void recordRappor(const char* metric, const WebString& sample) { } | 453 virtual void recordRappor(const char* metric, const WebString& sample) { } |
| 454 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } | 454 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } |
| 455 | 455 |
| 456 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump | 456 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump |
| 457 // method will be called on the same thread that called the | 457 // method will be called on the same thread that called the |
| 458 // registerMemoryDumpProvider() method. |name| is used for debugging | 458 // registerMemoryDumpProvider() method. |name| is used for debugging |
| 459 // (duplicates are allowed) and must be a long-lived C string. | 459 // (duplicates are allowed) and must be a long-lived C string. |
| 460 // See crbug.com/458295 for design docs. | 460 // See crbug.com/458295 for design docs. |
| 461 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* name) { } | 461 BLINK_PLATFORM_EXPORT void registerMemoryDumpProvider(blink::WebMemoryDumpPr ovider*, const char* name); |
|
kinuko
2016/02/04 13:15:54
If these are not called outside blink I don't thin
hajimehoshi
2016/02/05 07:41:54
Done.
hajimehoshi
2016/02/05 07:41:54
I've just now found that TestBlinkWebUnitTestSuppo
| |
| 462 | 462 |
| 463 // Must be called on the thread that called registerMemoryDumpProvider(). | 463 // Must be called on the thread that called registerMemoryDumpProvider(). |
| 464 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } | 464 BLINK_PLATFORM_EXPORT void unregisterMemoryDumpProvider(blink::WebMemoryDump Provider*); |
| 465 | 465 |
| 466 class TraceLogEnabledStateObserver { | 466 class TraceLogEnabledStateObserver { |
| 467 public: | 467 public: |
| 468 virtual ~TraceLogEnabledStateObserver() = default; | 468 virtual ~TraceLogEnabledStateObserver() = default; |
| 469 virtual void onTraceLogEnabled() = 0; | 469 virtual void onTraceLogEnabled() = 0; |
| 470 virtual void onTraceLogDisabled() = 0; | 470 virtual void onTraceLogDisabled() = 0; |
| 471 }; | 471 }; |
| 472 | 472 |
| 473 // Register or unregister a trace log state observer. Does not take ownershi p. | 473 // Register or unregister a trace log state observer. Does not take ownershi p. |
| 474 virtual void addTraceLogEnabledStateObserver(TraceLogEnabledStateObserver*) {} | 474 virtual void addTraceLogEnabledStateObserver(TraceLogEnabledStateObserver*) {} |
| 475 virtual void removeTraceLogEnabledStateObserver(TraceLogEnabledStateObserver *) {} | 475 virtual void removeTraceLogEnabledStateObserver(TraceLogEnabledStateObserver *) {} |
| 476 | 476 |
| 477 // Returns a newly allocated WebProcessMemoryDump instance. | |
| 478 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null ptr; } | |
| 479 | |
| 480 typedef uint64_t WebMemoryAllocatorDumpGuid; | 477 typedef uint64_t WebMemoryAllocatorDumpGuid; |
| 481 | 478 |
| 482 // Returns guid corresponding to the given string (the hash value) for | 479 // Returns guid corresponding to the given string (the hash value) for |
| 483 // creating a WebMemoryAllocatorDump. | 480 // creating a WebMemoryAllocatorDump. |
| 484 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; } | 481 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; } |
| 485 | 482 |
| 486 // GPU ---------------------------------------------------------------- | 483 // GPU ---------------------------------------------------------------- |
| 487 // | 484 // |
| 488 // May return null if GPU is not supported. | 485 // May return null if GPU is not supported. |
| 489 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. | 486 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 640 protected: | 637 protected: |
| 641 BLINK_PLATFORM_EXPORT Platform(); | 638 BLINK_PLATFORM_EXPORT Platform(); |
| 642 virtual ~Platform() { } | 639 virtual ~Platform() { } |
| 643 | 640 |
| 644 WebThread* m_mainThread; | 641 WebThread* m_mainThread; |
| 645 }; | 642 }; |
| 646 | 643 |
| 647 } // namespace blink | 644 } // namespace blink |
| 648 | 645 |
| 649 #endif | 646 #endif |
| OLD | NEW |