OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module content.mojom; | 5 module content.mojom; |
6 | 6 |
7 import "url/mojo/url.mojom"; | 7 import "url/mojo/url.mojom"; |
8 | 8 |
9 interface RenderFrameMessageFilter { | 9 interface RenderFrameMessageFilter { |
10 // Sets a cookie. The cookie is set asynchronously, but will be available to | 10 // Sets a cookie. The cookie is set asynchronously, but will be available to |
11 // any subsequent FrameHostMsg_GetCookies request. | 11 // any subsequent GetCookies() request. |
12 SetCookie(int32 render_frame_id, url.mojom.Url url, | 12 SetCookie(int32 render_frame_id, url.mojom.Url url, |
13 url.mojom.Url first_party_for_cookies, string cookie); | 13 url.mojom.Url first_party_for_cookies, string cookie); |
| 14 |
| 15 // Used to get cookies for the given URL. This may block waiting for a |
| 16 // previous SetCookie message to be processed. |
| 17 [Sync] |
| 18 GetCookies(int32 render_frame_id, url.mojom.Url url, |
| 19 url.mojom.Url first_party_for_cookies) => (string cookies); |
14 }; | 20 }; |
OLD | NEW |