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

Unified Diff: content/child/blink_platform_impl.h

Issue 1078173002: Remove obsolete SharedTimer code in chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index c96951e4133e2039894adedc142c324bcdddffd5..849eeedc77cddbcc5dd9a8139dd0a883df6652af 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -156,9 +156,6 @@ class CONTENT_EXPORT BlinkPlatformImpl
virtual double systemTraceTime();
virtual void cryptographicallyRandomValues(
unsigned char* buffer, size_t length);
- virtual void setSharedTimerFiredFunction(void (*func)());
- virtual void setSharedTimerFireInterval(double interval_seconds);
- virtual void stopSharedTimer();
virtual blink::WebGestureCurve* createFlingAnimationCurve(
blink::WebGestureDevice device_source,
const blink::WebFloatPoint& velocity,
@@ -174,19 +171,10 @@ class CONTENT_EXPORT BlinkPlatformImpl
virtual blink::WebPermissionClient* permissionClient();
virtual blink::WebSyncProvider* backgroundSyncProvider();
- void SuspendSharedTimer();
- void ResumeSharedTimer();
- virtual void OnStartSharedTimer(base::TimeDelta delay) {}
-
virtual blink::WebString domCodeStringFromEnum(int dom_code);
virtual int domEnumFromCodeString(const blink::WebString& codeString);
private:
- void DoTimeout() {
- if (shared_timer_func_ && !shared_timer_suspended_)
- shared_timer_func_();
- }
-
void InternalInit();
void UpdateWebThreadTLS(blink::WebThread* thread);
@@ -197,11 +185,6 @@ class CONTENT_EXPORT BlinkPlatformImpl
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
WebThemeEngineImpl native_theme_engine_;
WebFallbackThemeEngineImpl fallback_theme_engine_;
- base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
- void (*shared_timer_func_)();
- double shared_timer_fire_time_;
- bool shared_timer_fire_time_was_set_while_suspended_;
- int shared_timer_suspended_; // counter
base::ThreadLocalStorage::Slot current_thread_slot_;
webcrypto::WebCryptoImpl web_crypto_;
scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_;
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698