OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "url/gurl.h" | 10 #include "url/gurl.h" |
9 | 11 |
10 namespace content { | 12 namespace content { |
11 class WebContents; | 13 class WebContents; |
12 } | 14 } |
13 | 15 |
14 // Details sent for NOTIFICATION_RETARGETING. | 16 // Details sent for NOTIFICATION_RETARGETING. |
15 struct RetargetingDetails { | 17 struct RetargetingDetails { |
16 // The source tab contents. | 18 // The source tab contents. |
17 content::WebContents* source_web_contents; | 19 content::WebContents* source_web_contents; |
18 | 20 |
19 // The routing id of the source render frame from which the retargeting was | 21 // The routing id of the source render frame from which the retargeting was |
20 // triggered. | 22 // triggered. |
21 int64 source_render_frame_id; | 23 int64_t source_render_frame_id; |
22 | 24 |
23 // The target URL. | 25 // The target URL. |
24 GURL target_url; | 26 GURL target_url; |
25 | 27 |
26 // The target tab contents. | 28 // The target tab contents. |
27 content::WebContents* target_web_contents; | 29 content::WebContents* target_web_contents; |
28 | 30 |
29 // True if the target_web_contents is not yet inserted into a tab strip. | 31 // True if the target_web_contents is not yet inserted into a tab strip. |
30 bool not_yet_in_tabstrip; | 32 bool not_yet_in_tabstrip; |
31 }; | 33 }; |
32 | 34 |
33 #endif // CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ | 35 #endif // CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_ |
OLD | NEW |