| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // Returns an interface to the compositor thread. This can be null if the | 400 // Returns an interface to the compositor thread. This can be null if the |
| 401 // renderer was created with threaded rendering desabled. | 401 // renderer was created with threaded rendering desabled. |
| 402 virtual WebThread* compositorThread() const { return 0; } | 402 virtual WebThread* compositorThread() const { return 0; } |
| 403 | 403 |
| 404 // Testing ------------------------------------------------------------- | 404 // Testing ------------------------------------------------------------- |
| 405 | 405 |
| 406 // Gets a pointer to URLLoaderMockFactory for testing. Will not be available
in production builds. | 406 // Gets a pointer to URLLoaderMockFactory for testing. Will not be available
in production builds. |
| 407 virtual WebURLLoaderMockFactory* getURLLoaderMockFactory() { return nullptr;
} | 407 virtual WebURLLoaderMockFactory* getURLLoaderMockFactory() { return nullptr;
} |
| 408 | 408 |
| 409 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. | 409 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. |
| 410 // 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 e
TLD+1 of a url. |
| 411 virtual void recordRappor(const char* metric, const WebString& sample) { } | 411 virtual void recordRappor(const char* metric, const WebString& sample) { } |
| 412 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} | 412 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} |
| 413 | 413 |
| 414 // Record a UMA sequence action. The UserMetricsAction construction must | 414 // Record a UMA sequence action. The UserMetricsAction construction must |
| 415 // 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 |
| 416 // that script for more details. Intended use is: | 416 // that script for more details. Intended use is: |
| 417 // recordAction(UserMetricsAction("MyAction")) | 417 // recordAction(UserMetricsAction("MyAction")) |
| 418 virtual void recordAction(const UserMetricsAction&) { } | 418 virtual void recordAction(const UserMetricsAction&) { } |
| 419 | 419 |
| 420 class TraceLogEnabledStateObserver { | 420 class TraceLogEnabledStateObserver { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 protected: | 605 protected: |
| 606 Platform(); | 606 Platform(); |
| 607 virtual ~Platform() { } | 607 virtual ~Platform() { } |
| 608 | 608 |
| 609 WebThread* m_mainThread; | 609 WebThread* m_mainThread; |
| 610 }; | 610 }; |
| 611 | 611 |
| 612 } // namespace blink | 612 } // namespace blink |
| 613 | 613 |
| 614 #endif | 614 #endif |
| OLD | NEW |