1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_
6#define CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_
7
8#include "base/strings/string16.h"
9#include "base/time/time.h"
10#include "url/gurl.h"
11
12// Used as the target for importing history URLs from other browser's profiles
13// in the utility process. Converted to history::URLRow after being passed via
14// IPC to the browser.
15struct ImporterURLRow {
16 public:
17  ImporterURLRow();
18  explicit ImporterURLRow(const GURL& url);
19
20  GURL url;
21  base::string16 title;
22
23  // Total number of times this URL has been visited.
24  int visit_count;
25
26  // Number of times this URL has been manually entered in the URL bar.
27  int typed_count;
28
29  // The date of the last visit of this URL, which saves us from having to
30  // loop up in the visit table for things like autocomplete and expiration.
31  base::Time last_visit;
32
33  // Indicates this entry should now be shown in typical UI or queries, this
34  // is usually for subframes.
35  bool hidden;
36};
37
38#endif  // CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_
39