/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 | 39 "urls.id AS url_id, urls.url AS urls_url, " 47 "FROM (android_urls JOIN urls on (android_urls.url_id = urls.id) " 49 "on (android_urls.url_id = android_cache_db.bookmark_cache.url_id))"; 60 "(keyword_search_terms.url_id = urls.id) " 374 if (!history_db_->GetURLRow(i->url_id, &url_row)) 416 if (!history_db_->GetURLRow(row.url_id(), &url_row)) 494 if (!history_db_->GetAndroidURLRow(i->url_id, &android_url_row)) 630 if (!history_db_->GetURLRow(search_term_rows[0].url_id, &url_row)) 636 table_id_row.url_id = url_row.id() 810 URLID url_id = history_db_->GetRowForURL(i->url, NULL); local 848 URLID url_id = history_db_->GetRowForURL(icon_mapping.page_url, NULL); local [all...] |
android_history_types.h | 44 URL_ID, 151 void set_url_id(URLID url_id) { 152 set_value_explicitly(URL_ID); 153 url_id_ = url_id; 155 URLID url_id() const { function in class:history::HistoryAndBookmarkRow 284 URLID url_id; member in struct:history::AndroidURLRow
|
android_cache_database.h | 35 URLID url_id); 41 bool MarkURLsAsBookmarked(const std::vector<URLID>& url_id); 43 // Set the given |url_id|'s favicon column to |favicon_id|. Returns true on 45 bool SetFaviconID(URLID url_id, favicon_base::FaviconID favicon_id);
|
bookmark_model_sql_handler_unittest.cc | 123 URLID url_id = history_db_.AddURL(url_row); local 124 ASSERT_TRUE(url_id); 132 id_row.url_id = url_id; 186 history_db_.UpdateURLRow(url_id, url_row);
|
android_urls_database_unittest.cc | 53 "SELECT id, url_id, raw_url FROM android_urls ORDER BY id ASC"));
|
urls_sql_handler.cc | 102 if (!history_db_->GetURLRow(ids->url_id, &url_row)) 139 if (!history_db_->UpdateURLRow(ids->url_id, update_row)) 148 if (!history_db_->DeleteURLRow(ids->url_id))
|
/external/chromium_org/chrome/browser/history/ |
visitsegment_database.cc | 26 // url_id ID of the url currently used to represent this segment. 49 "url_id INTEGER NON NULL)")) { 62 "segments(url_id)")) 138 URLID url_id) { 140 "UPDATE segments SET url_id = ? WHERE id = ?")); 141 statement.BindInt64(0, url_id); 149 "SELECT url_id FROM segments WHERE id = ?")); 157 SegmentID VisitSegmentDatabase::CreateSegment(URLID url_id, 160 "INSERT INTO segments (name, url_id) VALUES (?,?)")); 162 statement.BindInt64(1, url_id); [all...] |
url_database_unittest.cc | 160 URLID url_id = AddURL(url_info1); local 161 ASSERT_NE(0, url_id); 166 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, keyword_id, keyword)); 175 ASSERT_TRUE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row)); 177 EXPECT_EQ(url_id, keyword_search_term_row.url_id); 188 ASSERT_FALSE(GetKeywordSearchTermRow(url_id, &keyword_search_term_row)); 199 URLID url_id = AddURL(url_info1); local 200 ASSERT_NE(0, url_id); 204 SetKeywordSearchTermsForURL(url_id, 1, base::UTF8ToUTF16("visit"))) [all...] |
visitsegment_database.h | 35 // The URL identifies the page that will now represent the segment. If url_id 38 URLID url_id); 46 SegmentID CreateSegment(URLID url_id, const std::string& segment_name); 69 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); 399 "url_id INTEGER NOT NULL," // ID of the url. 418 "keyword_search_terms (url_id)")) { 436 bool URLDatabase::SetKeywordSearchTermsForURL(URLID url_id, 439 DCHECK(url_id && keyword_id && !term.empty()); 443 "WHERE keyword_id = ? AND url_id = ?")); 445 exist_statement.BindInt64(1, url_id); [all...] |
visit_database_unittest.cc | 29 a.url_id == b.url_id && 78 VisitRow visit_info2(visit_info1.url_id, 91 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); 120 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); 133 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches)); 146 modification.url_id = 2; 177 VisitRow visit_info2(visit_info1.url_id, 216 VisitRow visit_info6(visit_info1.url_id, 400 int url_id = test_visit_rows[0].url_id local [all...] |
visit_database.cc | 87 visit->url_id = statement.ColumnInt64(1); 132 if (found_urls.find(visit.url_id) != found_urls.end()) 134 found_urls.insert(visit.url_id); 149 statement.BindInt64(0, visit->url_id); 158 << "url_id = " << visit->url_id; 235 statement.BindInt64(0, visit.url_id); 246 bool VisitDatabase::GetVisitsForURL(URLID url_id, VisitVector* visits) { 254 statement.BindInt64(0, url_id); 258 bool VisitDatabase::GetVisibleVisitsForURL(URLID url_id, [all...] |
visit_database.h | 59 bool GetVisitsForURL(URLID url_id, VisitVector* visits); 67 bool GetVisibleVisitsForURL(URLID url_id, 139 VisitID GetMostRecentVisitForURL(URLID url_id, 142 // Returns the |max_results| most recent visit sessions for |url_id|. 147 bool GetMostRecentVisitsForURL(URLID url_id,
|
/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);
|
url_request_throttler_entry.cc | 55 base::Value* NetLogRejectedRequestCallback(const std::string* url_id, 60 dict->SetString("url", *url_id); 68 const std::string& url_id) 75 url_id_(url_id), 84 const std::string& url_id, 97 url_id_(url_id) {
|
/external/chromium_org/chrome/browser/extensions/api/declarative/ |
declarative_rule_unittest.cc | 144 if (!dict->GetInteger("url_id", &result->condition_set_id)) 161 "{\"url_id\": 1, \"max\": 3}"))); 163 "{\"url_id\": 2, \"max\": 5}"))); 165 "{\"url_id\": 3, \"max\": 1}"))); 315 " {\"url_id\": 1, \"max\": 3}, \n" 316 " {\"url_id\": 2, \"max\": 5}, \n" 394 " {\"url_id\": 1, \"max\": 3}, \n" 395 " {\"url_id\": 2, \"max\": 5}, \n"
|