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

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

Issue 691483005: Remove Platform::cryptographicallyRandomValues (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 virtual WebString defaultLocale() { return WebString(); } 242 virtual WebString defaultLocale() { return WebString(); }
243 243
244 // Wall clock time in seconds since the epoch. 244 // Wall clock time in seconds since the epoch.
245 virtual double currentTime() { return 0; } 245 virtual double currentTime() { return 0; }
246 246
247 // Monotonically increasing time in seconds from an arbitrary fixed point in the past. 247 // Monotonically increasing time in seconds from an arbitrary fixed point in the past.
248 // This function is expected to return at least millisecond-precision values . For this reason, 248 // This function is expected to return at least millisecond-precision values . For this reason,
249 // it is recommended that the fixed point be no further in the past than the epoch. 249 // it is recommended that the fixed point be no further in the past than the epoch.
250 virtual double monotonicallyIncreasingTime() { return 0; } 250 virtual double monotonicallyIncreasingTime() { return 0; }
251 251
252 // WebKit clients must implement this funcion if they use cryptographic rand omness.
253 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t len gth) = 0;
254
255 // Delayed work is driven by a shared timer. 252 // Delayed work is driven by a shared timer.
256 typedef void (*SharedTimerFunction)(); 253 typedef void (*SharedTimerFunction)();
257 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { } 254 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { }
258 virtual void setSharedTimerFireInterval(double) { } 255 virtual void setSharedTimerFireInterval(double) { }
259 virtual void stopSharedTimer() { } 256 virtual void stopSharedTimer() { }
260 257
261 // Callable from a background WebKit thread. 258 // Callable from a background WebKit thread.
262 virtual void callOnMainThread(void (*func)(void*), void* context) { } 259 virtual void callOnMainThread(void (*func)(void*), void* context) { }
263 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner() { return 0; } 260 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner() { return 0; }
264 261
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // longer notify the listener, if any. 420 // longer notify the listener, if any.
424 virtual void stopListening(WebPlatformEventType type) { } 421 virtual void stopListening(WebPlatformEventType type) { }
425 422
426 protected: 423 protected:
427 virtual ~Platform() { } 424 virtual ~Platform() { }
428 }; 425 };
429 426
430 } // namespace blink 427 } // namespace blink
431 428
432 #endif 429 #endif
OLDNEW
« no previous file with comments | « sky/engine/platform/fonts/FontCacheTest.cpp ('k') | sky/engine/testing/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698