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

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

Issue 1845323002: Remove WebUnitTestSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 class WebServiceWorkerCacheStorage; 106 class WebServiceWorkerCacheStorage;
107 class WebSocketHandle; 107 class WebSocketHandle;
108 class WebSpeechSynthesizer; 108 class WebSpeechSynthesizer;
109 class WebSpeechSynthesizerClient; 109 class WebSpeechSynthesizerClient;
110 class WebStorageNamespace; 110 class WebStorageNamespace;
111 class WebSyncProvider; 111 class WebSyncProvider;
112 struct WebFloatPoint; 112 struct WebFloatPoint;
113 class WebThemeEngine; 113 class WebThemeEngine;
114 class WebThread; 114 class WebThread;
115 class WebTrialTokenValidator; 115 class WebTrialTokenValidator;
116 class WebURL;
117 class WebURLLoader; 116 class WebURLLoader;
117 class WebURLLoaderMockFactory;
118 class WebURLResponse; 118 class WebURLResponse;
119 class WebUnitTestSupport; 119 class WebURLResponse;
120 struct WebLocalizedString;
121 struct WebSize; 120 struct WebSize;
122 121
123 class BLINK_PLATFORM_EXPORT Platform { 122 class BLINK_PLATFORM_EXPORT Platform {
124 public: 123 public:
125 // HTML5 Database ------------------------------------------------------ 124 // HTML5 Database ------------------------------------------------------
126 125
127 #ifdef WIN32 126 #ifdef WIN32
128 typedef HANDLE FileHandle; 127 typedef HANDLE FileHandle;
129 #else 128 #else
130 typedef int FileHandle; 129 typedef int FileHandle;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Starts a vibration for the given duration in milliseconds. If there is cu rrently an active 404 // Starts a vibration for the given duration in milliseconds. If there is cu rrently an active
406 // vibration it will be cancelled before the new one is started. 405 // vibration it will be cancelled before the new one is started.
407 virtual void vibrate(unsigned time) { } 406 virtual void vibrate(unsigned time) { }
408 407
409 // Cancels the current vibration, if there is one. 408 // Cancels the current vibration, if there is one.
410 virtual void cancelVibration() { } 409 virtual void cancelVibration() { }
411 410
412 411
413 // Testing ------------------------------------------------------------- 412 // Testing -------------------------------------------------------------
414 413
415 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. 414 // Gets a pointer to URLLoaderMockFactory for testing. Will not be available in production builds.
416 virtual WebUnitTestSupport* unitTestSupport() { return nullptr; } 415 virtual WebURLLoaderMockFactory* getURLLoaderMockFactory() { return nullptr; }
417 416
418 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 417 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor.
419 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. 418 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url.
420 virtual void recordRappor(const char* metric, const WebString& sample) { } 419 virtual void recordRappor(const char* metric, const WebString& sample) { }
421 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 420 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
422 421
423 // Record a UMA sequence action. The UserMetricsAction construction must 422 // Record a UMA sequence action. The UserMetricsAction construction must
424 // be on a single line for extract_actions.py to find it. Please see 423 // be on a single line for extract_actions.py to find it. Please see
425 // that script for more details. Intended use is: 424 // that script for more details. Intended use is:
426 // recordAction(UserMetricsAction("MyAction")) 425 // recordAction(UserMetricsAction("MyAction"))
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 protected: 628 protected:
630 Platform(); 629 Platform();
631 virtual ~Platform() { } 630 virtual ~Platform() { }
632 631
633 WebThread* m_mainThread; 632 WebThread* m_mainThread;
634 }; 633 };
635 634
636 } // namespace blink 635 } // namespace blink
637 636
638 #endif 637 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebUnitTestSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698