On Tue, Jul 11, 2017 at 4:30 AM, Ian Clelland <icle...@chromium.org> wrote:It sounds like there's support for third_party/WebKit/common/origin_trials, which will eventually become blink/common/origin_trials.third_party/WebKit/common just needs DEPS/OWNERS/README.md, as far as I know. Kinuko, were you planning on including those?Yep, I have a WIP CL that includes them, and can send it for review soon.(I suppose you could add those as part of a CL that moves the origin trials code there, but if Kinuko is going to create that directory as part of a different CL, then I guess wait for that to land first)On Mon, Jul 10, 2017 at 3:18 PM, Alex Vallée <ava...@chromium.org> wrote:To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAJwg7svT0KqDcr2XQBoTo1UcakoqD79T1pDckzNujMZc4A09ng%40mail.gmail.com.So, do we have a decision about where this common code should end up?On Wed, Jul 5, 2017 at 11:31 PM, TAMURA, Kent <tk...@chromium.org> wrote:For some reason, we should not mix Chromium-origin code and WebKit-origin code. So //blink/common is preferable at this moment.--On Thu, Jul 6, 2017 at 11:42 AM, Kinuko Yasuda <kin...@chromium.org> wrote:On Thu, Jul 6, 2017 at 11:32 AM, Kentaro Hara <har...@chromium.org> wrote:On Thu, Jul 6, 2017 at 11:26 AM, Kinuko Yasuda <kin...@chromium.org> wrote:For loading / networking we're really starting to have lots of code that needs to be moved around or shared between processes, so having a clear destination now where common code can live sounds great. Either WebKit/common or blink/common sounds good, and +1 for having it in WebKit/common for now.Let me clarify a bit as things are moving fast: so the top-level dependency around Blink and browser-side code would look something likeservices/... things that implement services, both Blink and browser-side code can depend on its public interfaces.WebKit/common (or blink/common, at least eventually)... things that belong to Web platform live, both Blink and browser-side code can depend on this.components/... used to be the place for various componentized features with mixed deps, we're starting to ban Blink from depending on it.It's probably implied, but I propose we also move the components stuff that need to be referenced both from Blink and browser-side code into that directory, which will make our story a lot easier. Not coincidentally all of them (namely MimeUtils and LinkHeader) are loading related, so I'll incorporate that into our WIP loading re-architecturing plan if that sounds right to people / jam / haraken.Sounds reasonable to me!Would you mind creating WebKit/common/ (if there's no objection on this thread until tomorrow)?Sure I can, maybe after waiting for a day or so.To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAMWgRNbRqxSHHX8Wu1z4Z3ahq3E5kNTJm5aXaZaAQuX%3DnLTJNg%40mail.gmail.com.On Thu, Jul 6, 2017 at 10:11 AM, John Abd-El-Malek <j...@chromium.org> wrote:--On Wed, Jul 5, 2017 at 6:08 PM, Kentaro Hara <har...@chromium.org> wrote:On Thu, Jul 6, 2017 at 3:00 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Wed, Jul 5, 2017 at 1:38 PM, Marijn Kruisselbrink <m...@chromium.org> wrote:On Wed, Jul 5, 2017 at 10:35 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Wed, Jul 5, 2017 at 1:00 PM, John Abd-El-Malek <j...@chromium.org> wrote:Thinking about this more, I take this back. We should decide where the files go, and if we all agree on blink/public, then having a GN target (blink_shared/blink_common?)to match that is consistent with the rest of the code.Such a target would be a little strange, because it would be located in third_party/WebKit/ but essentially follow Chromium rules, so that it could be used in the browser process without WTF etc. existing. That would mean STL/base types rather than WTF types, and so on.I thought it was the long term plan to have the browser-process-side code of web platform features be part of blink as well (in some new blink/browser or similar directory)? Wouldn't we have to address such strangenesses anyway in that case? I'm not saying it might not be weird, but it seems like something we'll need to solve one way or another, even if we don't create a blink_common like target now.Discussion is a little scattered between tkent (et al)'s "great mv" thread and haraken (et al)'s Onion Soup 2.0 doc, but IIUC we'll ultimately have something like:blink/browser/...common/ (maybe? seems kinda-implied by dglazkov's decider-hat ruling)...renderer/bindings/core/controller/ (things left over from content/renderer/)modules/platform/tools/...Great summary! Yes, this is where we're going.In that world, it does seem reasonable to say "blink/renderer/ principally uses WTF types; everything outside uses STL types" (and have an assert_no_deps from the other code on the renderer code). This does have a number of upsides compared to our current configuration.If we make this directory today, where would it go? third_party/WebKit/public/ seems a little odd (because it's almost pure API today, and includes stuff only legal to call in the renderer), Source/ is that renderer code, and "common" doesn't exist yet.Yeah, I agree with Jeremy. I'm not sure if it's a good idea to abuse WebKit/public/ since the public APIs will be gone after Onion Soup 2.0.If my understanding's correct, making something like "third_party/WebKit/common/" (or maybe even "blink/common/"), in anticipation of a blink/browser/ and blink/common/ in the future, SGTM. If so, we'll definitely need to update READMEs and PRESUBMITs to agree.+1 to creating third_party/WebKit/common/ or //blink/common/ (if Chromium side people are okay with creating it now).From my pov, either is fine with me. I have a slight preference for third_party/WebKit/common/ because it's easier to understand until the src/blink move happens.--Kentaro Hara, Tokyo, Japan
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CALhVsw1CzwMNwrmN5oCSGFXg0GaxfGC9_c7E%3Dfzj0Pprk6QO5w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
--Kentaro Hara, Tokyo, JapanTAMURA Kent
Software Engineer, Google--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
Hi,
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CALhVsw1CzwMNwrmN5oCSGFXg0GaxfGC9_c7E%3Dfzj0Pprk6QO5w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAMWgRNbRqxSHHX8Wu1z4Z3ahq3E5kNTJm5aXaZaAQuX%3DnLTJNg%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan
--TAMURA Kent
Software Engineer, Google
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAJwg7svT0KqDcr2XQBoTo1UcakoqD79T1pDckzNujMZc4A09ng%40mail.gmail.com.
That plan SGTM.:DG<
Hi,
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CALhVsw1CzwMNwrmN5oCSGFXg0GaxfGC9_c7E%3Dfzj0Pprk6QO5w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAMWgRNbRqxSHHX8Wu1z4Z3ahq3E5kNTJm5aXaZaAQuX%3DnLTJNg%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan
--TAMURA Kent
Software Engineer, Google
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAJwg7svT0KqDcr2XQBoTo1UcakoqD79T1pDckzNujMZc4A09ng%40mail.gmail.com.
That plan SGTM.:DG<
Hi,
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CALhVsw1CzwMNwrmN5oCSGFXg0GaxfGC9_c7E%3Dfzj0Pprk6QO5w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAMWgRNbRqxSHHX8Wu1z4Z3ahq3E5kNTJm5aXaZaAQuX%3DnLTJNg%40mail.gmail.com.
--Kentaro Hara, Tokyo, Japan
--TAMURA Kent
Software Engineer, Google
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAJwg7svT0KqDcr2XQBoTo1UcakoqD79T1pDckzNujMZc4A09ng%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jzhY447t%2BqmNZwPVzd5KCKXe1Hv8WVCo9gJigLdWfocow%40mail.gmail.com.
How does it sound?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jzhY447t%2BqmNZwPVzd5KCKXe1Hv8WVCo9gJigLdWfocow%40mail.gmail.com.
How does it sound?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jzhY447t%2BqmNZwPVzd5KCKXe1Hv8WVCo9gJigLdWfocow%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAMWgRNbhUkAKWkX%2Bof%2BDEh5T_sb_pCjur9RVe%2BnM4k0oujmR7g%40mail.gmail.com.
I'm curious to learn more about Marijn's case. We should try to find a cheap way of reusing the mojo structure. Defining two C++ versions and typemaps is something we're trying to avoid.
Until then, unless we know there's no other way and that this situation will be widespread, I'd try to avoid different namespaces. It's not consistent with other directories that have browser/renderer code, and also against the general guideline of src/foo uses foo:: namespace.
On Tue, Aug 8, 2017 at 8:17 PM, Kinuko Yasuda <kin...@chromium.org> wrote:Yeah. Trying to have some consensus, here's another idea:"blink" for renderer code"blink_platform" for common and browser code (they don't really need to use different namespace)
On Tue, Aug 8, 2017 at 9:04 PM, John Abd-El-Malek <j...@chromium.org> wrote:I'm curious to learn more about Marijn's case. We should try to find a cheap way of reusing the mojo structure. Defining two C++ versions and typemaps is something we're trying to avoid.My particular case is a bit special probably. Using a struct to represent a message passed over a postMessage API (i.e. a blink::SerializedScriptValue). Using typemaps to two different c++ structs allows me to reduce copies of the data as much as possible: it lets me directly serialize from/to the SerializedScriptValue's internal buffer in the renderer, and it lets me broadcast out messages in the browser side for BroadcastChannel without having to make extra copies of the data for each pipe on which the message needs to be broadcasted.
I'm not planning to mess up this discussion but let me propose another option:- Use the same 'blink::' namespace for //blink/{browser,renderer,common}- Rename 'mojom::blink::' to 'mojom::renderer::'. Then //blink/renderer/ should use 'mojom::renderer::' and //blink/browser/ should use 'mojom::'.Any thoughts?
I'm not planning to mess up this discussion but let me propose another option:- Use the same 'blink::' namespace for //blink/{browser,renderer,common}- Rename 'mojom::blink::' to 'mojom::renderer::'. Then //blink/renderer/ should use 'mojom::renderer::' and //blink/browser/ should use 'mojom::'.Any thoughts?
Could we come up with a name for "blink-specific renderer-side types"? Does "wtf" seem a terrible idea?
Could we come up with a name for "blink-specific renderer-side types"? Does "wtf" seem a terrible idea?Once Onion Soup 2.0 is done, platform/wtf/ is going to be a "blink-specific renderer-side" library. So using "wtf" doesn't sound a bad idea to me.In short term, shall we go with Jam's proposal? In other words:- Use the same 'blink::' namespace for //blink/{browser,renderer,common}.- See how much it confuses Mojo bindings. If it's too much, we can consider renaming 'mojom::blink::' to 'mojom::wtf::' or something.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jwRK%2Bd8nrL195yDbhz4%2BvYyA%2BtOQ_m-SRKnr%3DLJrA%3Dj7g%40mail.gmail.com.
Could we come up with a name for "blink-specific renderer-side types"? Does "wtf" seem a terrible idea?Once Onion Soup 2.0 is done, platform/wtf/ is going to be a "blink-specific renderer-side" library. So using "wtf" doesn't sound a bad idea to me.In short term, shall we go with Jam's proposal? In other words:- Use the same 'blink::' namespace for //blink/{browser,renderer,common}.- See how much it confuses Mojo bindings. If it's too much, we can consider renaming 'mojom::blink::' to 'mojom::wtf::' or something.