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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2514323006: Allow Blink to generate cc::FrameSinkId from RenderThread (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 747885a940b479fac6bcd5a2f069c40775d78f50..5285ad95ca43c120b0be8d7854a2098f084834f4 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -321,6 +321,14 @@ class BLINK_PLATFORM_EXPORT Platform {
// the process's process ID.
virtual uint32_t getUniqueIdForProcess() { return 0; }
+ // Render Thread -------------------------------------------------------
+
+ // Returns a unique client ID for the process of the current render thread
+ virtual uint32_t getClientId() { return 0; }
Fady Samuel 2016/11/22 23:41:18 How about just exposing a "generateFrameSinkId" wh
xlai (Olivia) 2016/11/22 23:51:55 I would rather keep an interface function as strai
kinuko 2016/11/23 10:33:30 (Putting aside the discussion if it's recommended
+ // Generates a new routing ID. This method normally gets delegated to a
+ // MessageRouter.
+ virtual int generateRoutingId() { return 0; }
kinuko 2016/11/23 10:33:30 Is the 'routing ID' about IPC routing or render th
+
// Message Ports -------------------------------------------------------
// Creates a Message Port Channel pair. This can be called on any thread.
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698