10529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Copyright 2013 The Chromium Authors. All rights reserved. 20529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Use of this source code is governed by a BSD-style license that can be 30529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// found in the LICENSE file. 40529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 50529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#ifndef CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ 60529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#define CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ 70529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 80529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#include "base/strings/string16.h" 90529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#include "base/time/time.h" 100529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#include "url/gurl.h" 110529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 120529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Used as the target for importing history URLs from other browser's profiles 130529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// in the utility process. Converted to history::URLRow after being passed via 1446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// IPC to the browser. 1546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)struct ImporterURLRow { 1646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles) public: 1746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles) ImporterURLRow(); 180529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch explicit ImporterURLRow(const GURL& url); 190529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 200529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch GURL url; 210529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch base::string16 title; 220529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 230529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // Total number of times this URL has been visited. 240529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch int visit_count; 250529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 260529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // Number of times this URL has been manually entered in the URL bar. 270529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch int typed_count; 280529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 290529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // The date of the last visit of this URL, which saves us from having to 300529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // loop up in the visit table for things like autocomplete and expiration. 310529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch base::Time last_visit; 320529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 330529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // Indicates this entry should now be shown in typical UI or queries, this 340529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch // is usually for subframes. 350529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch bool hidden; 360529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch}; 370529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch 380529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch#endif // CHROME_COMMON_IMPORTER_IMPORTER_URL_ROW_H_ 390529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch