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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 1646583002: [Reland] Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try to fix the broken tests Created 4 years, 10 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void stopListening(blink::WebPlatformEventType) override; 180 void stopListening(blink::WebPlatformEventType) override;
181 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, 181 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition,
182 blink::WebStorageQuotaType, 182 blink::WebStorageQuotaType,
183 blink::WebStorageQuotaCallbacks) override; 183 blink::WebStorageQuotaCallbacks) override;
184 void vibrate(unsigned int milliseconds) override; 184 void vibrate(unsigned int milliseconds) override;
185 void cancelVibration() override; 185 void cancelVibration() override;
186 blink::WebThread* currentThread() override; 186 blink::WebThread* currentThread() override;
187 void recordRappor(const char* metric, 187 void recordRappor(const char* metric,
188 const blink::WebString& sample) override; 188 const blink::WebString& sample) override;
189 void recordRapporURL(const char* metric, const blink::WebURL& url) override; 189 void recordRapporURL(const char* metric, const blink::WebURL& url) override;
190 double currentTimeSeconds() override; 190 double virtualTimeSeconds() override;
191 double monotonicallyIncreasingTimeSeconds() override; 191 double monotonicallyIncreasingVirtualTimeSeconds() override;
192 192
193 // Set the PlatformEventObserverBase in |platform_event_observers_| associated 193 // Set the PlatformEventObserverBase in |platform_event_observers_| associated
194 // with |type| to |observer|. If there was already an observer associated to 194 // with |type| to |observer|. If there was already an observer associated to
195 // the given |type|, it will be replaced. 195 // the given |type|, it will be replaced.
196 // Note that |observer| will be owned by this object after the call. 196 // Note that |observer| will be owned by this object after the call.
197 void SetPlatformEventObserverForTesting( 197 void SetPlatformEventObserverForTesting(
198 blink::WebPlatformEventType type, 198 blink::WebPlatformEventType type,
199 scoped_ptr<PlatformEventObserverBase> observer); 199 scoped_ptr<PlatformEventObserverBase> observer);
200 200
201 // Disables the WebSandboxSupport implementation for testing. 201 // Disables the WebSandboxSupport implementation for testing.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
296 296
297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
298 298
299 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 299 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
300 }; 300 };
301 301
302 } // namespace content 302 } // namespace content
303 303
304 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 304 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698