Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: chrome/browser/history/android/android_provider_backend.cc

Issue 330603004: Rename FaviconBitmapXxx to FaviconRawBitmapXxx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/history/android/android_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include "base/i18n/case_conversion.h" 7 #include "base/i18n/case_conversion.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/favicon/favicon_changed_details.h" 9 #include "chrome/browser/favicon/favicon_changed_details.h"
10 #include "chrome/browser/history/android/android_time.h" 10 #include "chrome/browser/history/android/android_time.h"
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 scoped_ptr<URLsDeletedDetails> deleted_details(new URLsDeletedDetails); 1011 scoped_ptr<URLsDeletedDetails> deleted_details(new URLsDeletedDetails);
1012 scoped_ptr<FaviconChangedDetails> favicon_details(new FaviconChangedDetails); 1012 scoped_ptr<FaviconChangedDetails> favicon_details(new FaviconChangedDetails);
1013 scoped_ptr<URLsModifiedDetails> modified(new URLsModifiedDetails); 1013 scoped_ptr<URLsModifiedDetails> modified(new URLsModifiedDetails);
1014 URLRow old_url_row; 1014 URLRow old_url_row;
1015 if (!history_db_->GetURLRow(ids[0].url_id, &old_url_row)) 1015 if (!history_db_->GetURLRow(ids[0].url_id, &old_url_row))
1016 return false; 1016 return false;
1017 deleted_details->rows.push_back(old_url_row); 1017 deleted_details->rows.push_back(old_url_row);
1018 1018
1019 favicon_base::FaviconID favicon_id = statement->statement()->ColumnInt64(4); 1019 favicon_base::FaviconID favicon_id = statement->statement()->ColumnInt64(4);
1020 if (favicon_id) { 1020 if (favicon_id) {
1021 std::vector<FaviconBitmap> favicon_bitmaps; 1021 std::vector<FaviconRawBitmap> favicon_bitmaps;
1022 if (!thumbnail_db_ || 1022 if (!thumbnail_db_ ||
1023 !thumbnail_db_->GetFaviconBitmaps(favicon_id, &favicon_bitmaps)) 1023 !thumbnail_db_->GetFaviconRawBitmaps(favicon_id, &favicon_bitmaps))
1024 return false; 1024 return false;
1025 scoped_refptr<base::RefCountedMemory> bitmap_data = 1025 scoped_refptr<base::RefCountedMemory> bitmap_data =
1026 favicon_bitmaps[0].bitmap_data; 1026 favicon_bitmaps[0].bitmap_data;
1027 if (bitmap_data.get() && bitmap_data->size()) 1027 if (bitmap_data.get() && bitmap_data->size())
1028 new_row.set_favicon(bitmap_data); 1028 new_row.set_favicon(bitmap_data);
1029 favicon_details->urls.insert(old_url_row.url()); 1029 favicon_details->urls.insert(old_url_row.url());
1030 favicon_details->urls.insert(row.url()); 1030 favicon_details->urls.insert(row.url());
1031 } 1031 }
1032 new_row.set_is_bookmark(statement->statement()->ColumnBool(5)); 1032 new_row.set_is_bookmark(statement->statement()->ColumnBool(5));
1033 1033
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 return false; 1220 return false;
1221 1221
1222 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(), 1222 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(),
1223 values.template_url_id(), values.search_term())) 1223 values.template_url_id(), values.search_term()))
1224 return false; 1224 return false;
1225 } 1225 }
1226 return true; 1226 return true;
1227 } 1227 }
1228 1228
1229 } // namespace history 1229 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698