summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/importer/importer_url_row.h
blob: f7e0a6dd8e89ea6152cb6f1e000811c8ca20d11c (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
33
34
35
36
37
38
39
// Copyright 2013 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_COMMON_IMPORTER_IMPORTER_URL_ROW_H_
#define CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_

#include "base/strings/string16.h"
#include "base/time/time.h"
#include "url/gurl.h"

// Used as the target for importing history URLs from other browser's profiles
// in the utility process. Converted to history::URLRow after being passed via
// IPC to the browser.
struct ImporterURLRow {
 public:
  ImporterURLRow();
  explicit ImporterURLRow(const GURL& url);
  ImporterURLRow(const ImporterURLRow& other);

  GURL url;
  base::string16 title;

  // Total number of times this URL has been visited.
  int visit_count;

  // Number of times this URL has been manually entered in the URL bar.
  int typed_count;

  // The date of the last visit of this URL, which saves us from having to
  // loop up in the visit table for things like autocomplete and expiration.
  base::Time last_visit;

  // Indicates this entry should now be shown in typical UI or queries, this
  // is usually for subframes.
  bool hidden;
};

#endif  // CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_