Interceptor example

20 views
Skip to first unread message

Jason J. W. Williams

unread,
Feb 16, 2017, 6:24:33 PM2/16/17
to Chromium-dev
I've been reading through the "Life of a URLRequest" and "Network Stack" documents, trying to learn the right way to attach to the URL loading process to intercept and modify all requests using a custom handler.

It appears to me like creating an instance of URLRequest::Interceptor is the right way to do that, but I'm not sure how to register the interceptor globally. If I'm barking up the wrong tree, any advice on the right way to look at it is greatly appreciated.

Is there perhaps an example someone has posted, or a unit test that shows the right way to do that?

Thank you in advance.

-J

Lei Zhang

unread,
Feb 21, 2017, 6:21:28 PM2/21/17
to jasonjw...@gmail.com, Chromium-dev
Maybe try asking on the net-dev mailing list instead?
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Jason J. W. Williams

unread,
Feb 21, 2017, 7:10:15 PM2/21/17
to Lei Zhang, Chromium-dev
Thanks Lei. I'll give that a shot.

-J
Reply all
Reply to author
Forward
0 new messages