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