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

Side by Side Diff: content/child/blink_platform_impl.h

Issue 679523004: Remove overrides in BlinkPlatformImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual blink::WebString signedPublicKeyAndChallengeString( 57 virtual blink::WebString signedPublicKeyAndChallengeString(
58 unsigned key_size_index, const blink::WebString& challenge, 58 unsigned key_size_index, const blink::WebString& challenge,
59 const blink::WebURL& url); 59 const blink::WebURL& url);
60 virtual size_t memoryUsageMB(); 60 virtual size_t memoryUsageMB();
61 virtual size_t actualMemoryUsageMB(); 61 virtual size_t actualMemoryUsageMB();
62 virtual size_t physicalMemoryMB(); 62 virtual size_t physicalMemoryMB();
63 virtual size_t virtualMemoryLimitMB(); 63 virtual size_t virtualMemoryLimitMB();
64 virtual size_t numberOfProcessors(); 64 virtual size_t numberOfProcessors();
65 65
66 virtual void startHeapProfiling(const blink::WebString& prefix); 66 virtual void startHeapProfiling(const blink::WebString& prefix);
67 virtual void stopHeapProfiling() override; 67 virtual void stopHeapProfiling();
68 virtual void dumpHeapProfiling(const blink::WebString& reason); 68 virtual void dumpHeapProfiling(const blink::WebString& reason);
69 virtual blink::WebString getHeapProfile() override; 69 virtual blink::WebString getHeapProfile();
70 70
71 virtual bool processMemorySizesInBytes(size_t* private_bytes, 71 virtual bool processMemorySizesInBytes(size_t* private_bytes,
72 size_t* shared_bytes); 72 size_t* shared_bytes);
73 virtual bool memoryAllocatorWasteInBytes(size_t* size); 73 virtual bool memoryAllocatorWasteInBytes(size_t* size);
74 virtual blink::WebDiscardableMemory* allocateAndLockDiscardableMemory( 74 virtual blink::WebDiscardableMemory* allocateAndLockDiscardableMemory(
75 size_t bytes); 75 size_t bytes);
76 virtual size_t maxDecodedImageBytes() override; 76 virtual size_t maxDecodedImageBytes();
77 virtual blink::WebURLLoader* createURLLoader(); 77 virtual blink::WebURLLoader* createURLLoader();
78 virtual blink::WebSocketHandle* createWebSocketHandle() override; 78 virtual blink::WebSocketHandle* createWebSocketHandle();
79 virtual blink::WebString userAgent(); 79 virtual blink::WebString userAgent();
80 virtual blink::WebData parseDataURL( 80 virtual blink::WebData parseDataURL(
81 const blink::WebURL& url, blink::WebString& mimetype, 81 const blink::WebURL& url, blink::WebString& mimetype,
82 blink::WebString& charset); 82 blink::WebString& charset);
83 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; 83 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const;
84 virtual bool isReservedIPAddress( 84 virtual bool isReservedIPAddress(
85 const blink::WebSecurityOrigin&) const override; 85 const blink::WebSecurityOrigin&) const;
86 virtual bool isReservedIPAddress(const blink::WebURL&) const override; 86 virtual bool isReservedIPAddress(const blink::WebURL&) const;
87 virtual blink::WebThread* createThread(const char* name); 87 virtual blink::WebThread* createThread(const char* name);
88 virtual blink::WebThread* currentThread(); 88 virtual blink::WebThread* currentThread();
89 virtual void yieldCurrentThread(); 89 virtual void yieldCurrentThread();
90 virtual blink::WebWaitableEvent* createWaitableEvent(); 90 virtual blink::WebWaitableEvent* createWaitableEvent();
91 virtual blink::WebWaitableEvent* waitMultipleEvents( 91 virtual blink::WebWaitableEvent* waitMultipleEvents(
92 const blink::WebVector<blink::WebWaitableEvent*>& events); 92 const blink::WebVector<blink::WebWaitableEvent*>& events);
93 virtual void decrementStatsCounter(const char* name); 93 virtual void decrementStatsCounter(const char* name);
94 virtual void incrementStatsCounter(const char* name); 94 virtual void incrementStatsCounter(const char* name);
95 virtual void histogramCustomCounts( 95 virtual void histogramCustomCounts(
96 const char* name, int sample, int min, int max, int bucket_count); 96 const char* name, int sample, int min, int max, int bucket_count);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual double monotonicallyIncreasingTime(); 140 virtual double monotonicallyIncreasingTime();
141 virtual void cryptographicallyRandomValues( 141 virtual void cryptographicallyRandomValues(
142 unsigned char* buffer, size_t length); 142 unsigned char* buffer, size_t length);
143 virtual void setSharedTimerFiredFunction(void (*func)()); 143 virtual void setSharedTimerFiredFunction(void (*func)());
144 virtual void setSharedTimerFireInterval(double interval_seconds); 144 virtual void setSharedTimerFireInterval(double interval_seconds);
145 virtual void stopSharedTimer(); 145 virtual void stopSharedTimer();
146 virtual void callOnMainThread(void (*func)(void*), void* context); 146 virtual void callOnMainThread(void (*func)(void*), void* context);
147 virtual blink::WebGestureCurve* createFlingAnimationCurve( 147 virtual blink::WebGestureCurve* createFlingAnimationCurve(
148 blink::WebGestureDevice device_source, 148 blink::WebGestureDevice device_source,
149 const blink::WebFloatPoint& velocity, 149 const blink::WebFloatPoint& velocity,
150 const blink::WebSize& cumulative_scroll) override; 150 const blink::WebSize& cumulative_scroll);
151 virtual void didStartWorkerRunLoop( 151 virtual void didStartWorkerRunLoop(
152 const blink::WebWorkerRunLoop& runLoop) override; 152 const blink::WebWorkerRunLoop& runLoop);
153 virtual void didStopWorkerRunLoop( 153 virtual void didStopWorkerRunLoop(
154 const blink::WebWorkerRunLoop& runLoop) override; 154 const blink::WebWorkerRunLoop& runLoop);
155 virtual blink::WebCrypto* crypto() override; 155 virtual blink::WebCrypto* crypto();
156 virtual blink::WebGeofencingProvider* geofencingProvider() override; 156 virtual blink::WebGeofencingProvider* geofencingProvider();
157 157
158 void SuspendSharedTimer(); 158 void SuspendSharedTimer();
159 void ResumeSharedTimer(); 159 void ResumeSharedTimer();
160 virtual void OnStartSharedTimer(base::TimeDelta delay) {} 160 virtual void OnStartSharedTimer(base::TimeDelta delay) {}
161 161
162 private: 162 private:
163 static void DestroyCurrentThread(void*); 163 static void DestroyCurrentThread(void*);
164 164
165 void DoTimeout() { 165 void DoTimeout() {
166 if (shared_timer_func_ && !shared_timer_suspended_) 166 if (shared_timer_func_ && !shared_timer_suspended_)
167 shared_timer_func_(); 167 shared_timer_func_();
168 } 168 }
169 169
170 WebThemeEngineImpl native_theme_engine_; 170 WebThemeEngineImpl native_theme_engine_;
171 WebFallbackThemeEngineImpl fallback_theme_engine_; 171 WebFallbackThemeEngineImpl fallback_theme_engine_;
172 base::MessageLoop* main_loop_; 172 base::MessageLoop* main_loop_;
173 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; 173 base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
174 void (*shared_timer_func_)(); 174 void (*shared_timer_func_)();
175 double shared_timer_fire_time_; 175 double shared_timer_fire_time_;
176 bool shared_timer_fire_time_was_set_while_suspended_; 176 bool shared_timer_fire_time_was_set_while_suspended_;
177 int shared_timer_suspended_; // counter 177 int shared_timer_suspended_; // counter
178 base::ThreadLocalStorage::Slot current_thread_slot_; 178 base::ThreadLocalStorage::Slot current_thread_slot_;
179 WebCryptoImpl web_crypto_; 179 WebCryptoImpl web_crypto_;
180 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; 180 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_;
181 }; 181 };
182 182
183 } // namespace content 183 } // namespace content
184 184
185 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 185 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698