HomeSort by relevance Sort by last modified time
    Searched full:url_id (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /external/chromium_org/chrome/browser/history/android/
android_urls_database.cc 26 "url_id INTEGER NOT NULL" // url id in urls table.
40 " ON android_urls(url_id)")) {
49 URLID url_id) {
50 if (GetAndroidURLRow(url_id, NULL)) {
51 LOG(ERROR) << "url_id already exist";
56 "INSERT INTO android_urls (raw_url, url_id) VALUES (?, ?)"));
59 statement.BindInt64(1, static_cast<int64>(url_id));
68 bool AndroidURLsDatabase::GetAndroidURLRow(URLID url_id, AndroidURLRow* row) {
70 "SELECT id, raw_url, url_id FROM android_urls WHERE url_id = ?"))
    [all...]
visit_sql_handler.cc 47 if (!history_db_->GetVisitsForURL(id->url_id, &visits))
51 if (!history_db_->GetURLRow(id->url_id, &url_row))
62 if (!DeleteVisitsForURL(id->url_id))
69 if (!AddVisit(id->url_id, row.created()))
74 if (!AddVisitRows(id->url_id, visit_count_needed - visit_count_in_table,
82 DCHECK(row->is_value_set_explicitly(HistoryAndBookmarkRow::URL_ID));
85 if (!history_db_->GetURLRow(row->url_id(), &url_row))
96 if (!AddVisit(row->url_id(), row->created()))
101 if (!AddVisitRows(row->url_id(), visit_count, url_row.last_visit()))
110 DeleteVisitsForURL(ids->url_id);
    [all...]
android_urls_sql_handler.cc 16 HistoryAndBookmarkRow::RAW_URL, HistoryAndBookmarkRow::URL_ID };
30 DCHECK(row.is_value_set_explicitly(HistoryAndBookmarkRow::URL_ID));
36 if (!history_db_->GetAndroidURLRow(ids_set[0].url_id, &android_url_row))
40 row.url_id());
45 row->url_id());
54 ids.push_back(id->url_id);
visit_sql_handler.h 31 // Add a row in visit table with the given |url_id| and |visit_time|.
32 bool AddVisit(URLID url_id, const base::Time& visit_time);
34 // Add the given |visit_count| rows for |url_id|. The visit time of each row
36 bool AddVisitRows(URLID url_id,
40 // Delete the visits of the given |url_id|.
41 bool DeleteVisitsForURL(URLID url_id);
android_urls_database.h 32 // Adds a new mapping between |raw_url| and |url_id|, returns the id if it
34 AndroidURLID AddAndroidURLRow(const std::string& raw_url, URLID url_id);
36 // Looks up the given |url_id| in android_urls table. Returns true if success,
37 // and fill in the |row| if it not NULL, returns false if the |url_id| is not
39 bool GetAndroidURLRow(URLID url_id, AndroidURLRow* row);
41 // Deletes the rows whose url_id is in |url_ids|. Returns true if all
45 // Deletes all the rows whose url_id doesn't exist in urls table. Returns true
49 // Updates the row of |id| with the given |raw_url| and |url_id|. Returns true
53 URLID url_id);
urls_sql_handler_unittest.cc 61 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
67 EXPECT_EQ(row.url_id(), url_row.id());
80 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
81 EXPECT_EQ(row.url_id(), url_row.id());
99 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
100 EXPECT_EQ(row.url_id(), url_row.id());
118 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
119 EXPECT_EQ(row.url_id(), url_row.id());
138 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
139 EXPECT_EQ(row.url_id(), url_row.id())
    [all...]
visit_sql_handler_unittest.cc 63 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
67 ASSERT_TRUE(history_db_.GetVisitsForURL(row.url_id(), &visits));
82 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
85 ASSERT_TRUE(history_db_.GetVisitsForURL(row.url_id(), &visits));
102 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
105 ASSERT_TRUE(history_db_.GetVisitsForURL(row.url_id(), &visits));
121 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
124 ASSERT_TRUE(history_db_.GetVisitsForURL(row.url_id(), &visits));
143 ASSERT_TRUE(history_db_.GetURLRow(row.url_id(), &url_row));
146 ASSERT_TRUE(history_db_.GetVisitsForURL(row.url_id(), &visits))
    [all...]
android_cache_database.cc 41 URLID url_id) {
44 "last_visit_time, url_id) VALUES (?, ?, ?)"));
48 statement.BindInt64(2, url_id);
85 "SET bookmark = 1 WHERE url_id in (");
95 bool AndroidCacheDatabase::SetFaviconID(URLID url_id,
99 "SET favicon_id = ? WHERE url_id = ? "));
102 update_statement.BindInt64(1, url_id);
210 "url_id INTEGER NOT NULL," // url id in urls table.
221 "bookmark_cache(url_id)");
sql_handler.cc 10 : url_id(0),
android_provider_backend.cc 38 "urls.id AS url_id, urls.url AS urls_url, "
46 "FROM (android_urls JOIN urls on (android_urls.url_id = urls.id) "
48 "on (android_urls.url_id = android_cache_db.bookmark_cache.url_id))";
59 "(keyword_search_terms.url_id = urls.id) "
346 if (!history_db_->GetURLRow(i->url_id, &url_row))
386 if (!history_db_->GetURLRow(row.url_id(), &url_row))
463 if (!history_db_->GetAndroidURLRow(i->url_id, &android_url_row))
599 if (!history_db_->GetURLRow(search_term_rows[0].url_id, &url_row))
605 table_id_row.url_id = url_row.id()
779 URLID url_id = history_db_->GetRowForURL(i->url, NULL); local
816 URLID url_id = history_db_->GetRowForURL(icon_mapping.page_url, NULL); local
    [all...]
  /external/chromium_org/chrome/browser/history/
url_database_unittest.cc 132 URLID url_id = AddURL(url_info1); local
133 ASSERT_NE(0, url_id);
138 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, keyword_id, keyword));
147 ASSERT_TRUE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row));
149 EXPECT_EQ(url_id, keyword_search_term_row.url_id);
160 ASSERT_FALSE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row));
171 URLID url_id = AddURL(url_info1); local
172 ASSERT_NE(0, url_id);
175 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, 1, UTF8ToUTF16("visit")))
    [all...]
in_memory_history_backend.cc 160 URLID url_id; local
167 url_id = db_->AddURL(new_row);
168 if (!url_id)
171 url_id = url_row.id();
174 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term);
179 URLID url_id = db_->GetRowForURL(details.url, NULL); local
180 if (url_id)
181 db_->DeleteKeywordSearchTermForURL(url_id);
visitsegment_database.cc 28 // url_id ID of the url currently used to represent this segment.
60 "url_id INTEGER NON NULL)")) {
73 "segments(url_id)"))
175 URLID url_id) {
177 "UPDATE segments SET url_id = ? WHERE id = ?"));
178 statement.BindInt64(0, url_id);
186 "SELECT url_id FROM segments WHERE id = ?"));
194 SegmentID VisitSegmentDatabase::CreateSegment(URLID url_id,
197 "INSERT INTO segments (name, url_id) VALUES (?,?)"));
199 statement.BindInt64(1, url_id);
    [all...]
visitsegment_database.h 40 // The URL identifies the page that will now represent the segment. If url_id
43 URLID url_id);
51 SegmentID CreateSegment(URLID url_id, const std::string& segment_name);
74 bool DeleteSegmentForURL(URLID url_id);
url_database.cc 75 bool URLDatabase::GetURLRow(URLID url_id, URLRow* info) {
82 statement.BindInt64(0, url_id);
117 bool URLDatabase::UpdateURLRow(URLID url_id,
128 statement.BindInt64(5, url_id);
375 "url_id INTEGER NOT NULL," // ID of the url.
394 "keyword_search_terms (url_id)")) {
412 bool URLDatabase::SetKeywordSearchTermsForURL(URLID url_id,
415 DCHECK(url_id && keyword_id && !term.empty());
419 "WHERE keyword_id = ? AND url_id = ?"));
421 exist_statement.BindInt64(1, url_id);
    [all...]
  /external/chromium/chrome/browser/history/
visitsegment_database.h 36 // The URL identifies the page that will now represent the segment. If url_id
39 URLID url_id);
47 SegmentID CreateSegment(URLID url_id, const std::string& segment_name);
70 bool DeleteSegmentForURL(URLID url_id);
visitsegment_database.cc 25 // url_id ID of the url currently used to represent this segment.
49 "url_id INTEGER NON NULL,"
63 GetDB().Execute("CREATE INDEX segments_url_id ON segments(url_id)");
96 "url_id INTEGER PRIMARY KEY,"
154 URLID url_id) {
156 "UPDATE segments SET url_id = ? WHERE id = ?"));
160 statement.BindInt64(0, url_id);
167 "SELECT url_id FROM segments WHERE id = ?"));
177 SegmentID VisitSegmentDatabase::CreateSegment(URLID url_id,
180 "INSERT INTO segments (name, url_id) VALUES (?,?)"))
    [all...]
url_database_unittest.cc 133 URLID url_id = AddURL(url_info1); local
134 ASSERT_TRUE(url_id != 0);
139 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, keyword_id, keyword));
148 ASSERT_TRUE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row));
150 EXPECT_EQ(url_id, keyword_search_term_row.url_id);
161 ASSERT_FALSE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row));
172 URLID url_id = AddURL(url_info1); local
173 ASSERT_TRUE(url_id != 0);
176 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, 1, UTF8ToUTF16("visit")))
    [all...]
url_database.cc 85 bool URLDatabase::GetURLRow(URLID url_id, URLRow* info) {
95 statement.BindInt64(0, url_id);
133 bool URLDatabase::UpdateURLRow(URLID url_id,
147 statement.BindInt64(5, url_id);
209 "DELETE FROM keyword_search_terms WHERE url_id=?"));
383 "url_id INTEGER NOT NULL," // ID of the url.
398 "keyword_search_terms (url_id)");
406 bool URLDatabase::SetKeywordSearchTermsForURL(URLID url_id,
409 DCHECK(url_id && keyword_id && !term.empty());
413 "WHERE keyword_id = ? AND url_id = ?"))
    [all...]
visit_database.cc 91 visit->url_id = statement.ColumnInt64(1);
116 << "url_id = " << visit->url_id;
120 statement.BindInt64(0, visit->url_id);
129 << "url_id = " << visit->url_id;
141 << "url_id = " << visit->visit_id;
149 << "url_id = " << visit->visit_id;
220 statement.BindInt64(0, visit.url_id);
230 bool VisitDatabase::GetVisitsForURL(URLID url_id, VisitVector* visits)
    [all...]
visit_database_unittest.cc 26 a.url_id == b.url_id &&
76 VisitRow visit_info2(visit_info1.url_id,
89 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches));
118 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches));
131 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches));
144 modification.url_id = 2;
170 VisitRow visit_info2(visit_info1.url_id,
in_memory_history_backend.cc 175 URLID url_id; local
182 url_id = db_->AddURL(new_row);
183 if (!url_id)
186 url_id = url_row.id();
189 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term);
  /external/chromium_org/net/url_request/
url_request_throttler_manager.cc 56 std::string url_id = GetIdFromUrl(url); local
62 scoped_refptr<URLRequestThrottlerEntry>& entry = url_entries_[url_id];
74 entry = new URLRequestThrottlerEntry(this, url_id);
120 std::string url_id = GetIdFromUrl(url); local
125 url_entries_[url_id] = entry;
130 std::string url_id = GetIdFromUrl(url); local
131 url_entries_.erase(url_id);
  /external/chromium/chrome/browser/autocomplete/
autocomplete_result_unittest.cc 16 // 'http://' + |url_id|.
17 int url_id; member in struct:AutocompleteResultTest::TestData
57 match->fill_into_edit = base::IntToString16(data.url_id);
58 std::string url_id(1, data.url_id + 'a');
59 match->destination_url = GURL("http://" + url_id);
  /external/chromium/net/url_request/
url_request_throttler_manager.cc 25 std::string url_id = GetIdFromUrl(url); local
31 scoped_refptr<URLRequestThrottlerEntry>& entry = url_entries_[url_id];
67 std::string url_id = GetIdFromUrl(url); local
72 url_entries_[url_id] = entry;
77 std::string url_id = GetIdFromUrl(url); local
78 url_entries_.erase(url_id);

Completed in 1236 milliseconds

1 2 3 4