OLD | NEW |
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/bookmark_model_sql_handler.h" | 5 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "components/bookmarks/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
11 #include "components/bookmarks/browser/bookmark_utils.h" | 11 #include "components/bookmarks/browser/bookmark_utils.h" |
12 #include "components/history/core/browser/url_database.h" | 12 #include "components/history/core/browser/url_database.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 using base::Time; | 15 using base::Time; |
16 using bookmarks::BookmarkModel; | 16 using bookmarks::BookmarkModel; |
| 17 using bookmarks::BookmarkNode; |
17 using content::BrowserThread; | 18 using content::BrowserThread; |
18 | 19 |
19 namespace history { | 20 namespace history { |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
23 // The interesting columns of this handler. | 24 // The interesting columns of this handler. |
24 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { | 25 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { |
25 HistoryAndBookmarkRow::BOOKMARK, HistoryAndBookmarkRow::TITLE }; | 26 HistoryAndBookmarkRow::BOOKMARK, HistoryAndBookmarkRow::TITLE }; |
26 | 27 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( | 167 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( |
167 &BookmarkModelSQLHandler::Task::AddBookmarkToMobileFolder, | 168 &BookmarkModelSQLHandler::Task::AddBookmarkToMobileFolder, |
168 scoped_refptr<BookmarkModelSQLHandler::Task>( | 169 scoped_refptr<BookmarkModelSQLHandler::Task>( |
169 new BookmarkModelSQLHandler::Task()), | 170 new BookmarkModelSQLHandler::Task()), |
170 row->url(), row->title())); | 171 row->url(), row->title())); |
171 } | 172 } |
172 return true; | 173 return true; |
173 } | 174 } |
174 | 175 |
175 } // namespace history | 176 } // namespace history |
OLD | NEW |