summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/retargeting_details.h
blob: 108b6a6e4a9c6d1d9bb676f492a8b97911afc07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_
#define CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_

#include "url/gurl.h"

namespace content {
class WebContents;
}

// Details sent for NOTIFICATION_RETARGETING.
struct RetargetingDetails {
  // The source tab contents.
  content::WebContents* source_web_contents;

  // The frame ID of the source tab from which the retargeting was triggered.
  int64 source_frame_id;

  // The target URL.
  GURL target_url;

  // The target tab contents.
  content::WebContents* target_web_contents;

  // True if the target_web_contents is not yet inserted into a tab strip.
  bool not_yet_in_tabstrip;
};

#endif  // CHROME_BROWSER_TAB_CONTENTS_RETARGETING_DETAILS_H_