/external/chromium_org/chrome/browser/history/android/ |
D | bookmark_model_sql_handler_unittest.cc | 32 bookmark_model_(NULL), in BookmarkModelSQLHandlerTest() 49 bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile); in SetUp() 50 test::WaitForBookmarkModelToLoad(bookmark_model_); in SetUp() 51 ASSERT_TRUE(bookmark_model_); in SetUp() 71 BookmarkModel* bookmark_model_; member in history::BookmarkModelSQLHandlerTest 90 bookmark_model_->GetNodesByURL(row.url(), &nodes); in TEST_F() 95 EXPECT_EQ(bookmark_model_->mobile_node()->id(), parent->id()); in TEST_F() 105 row.set_parent_id(bookmark_model_->other_node()->id()); in TEST_F() 111 bookmark_model_->GetNodesByURL(row.url(), &nodes); in TEST_F() 142 bookmark_model_->GetBookmarks(&bookmarks); in TEST_F() [all …]
|
D | android_provider_backend_unittest.cc | 114 bookmark_model_(NULL), in AndroidProviderBackendTest() 130 bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile); in SetUp() 131 test::WaitForBookmarkModelToLoad(bookmark_model_); in SetUp() 132 ASSERT_TRUE(bookmark_model_); in SetUp() 150 const BookmarkNode* mobile_node = bookmark_model_->mobile_node(); in AddBookmark() 152 ASSERT_TRUE(bookmark_model_->AddURL(mobile_node, 0, base::string16(), url)); in AddBookmark() 198 BookmarkModel* bookmark_model_; member in history::AndroidProviderBackendTest 231 ASSERT_TRUE(bookmark_model_->AddURL(bookmark_model_->bookmark_bar_node(), 0, in TEST_F() 238 new AndroidProviderBackendDelegate(), bookmark_model_); in TEST_F() 274 &thumbnail_db_, bookmark_model_, &delegate_)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/bookmarks/ |
D | bookmark_tag_model.cc | 88 : bookmark_model_(bookmark_model), in BookmarkTagModel() 92 bookmark_model_->AddObserver(this); in BookmarkTagModel() 93 if (bookmark_model_->loaded()) in BookmarkTagModel() 98 if (bookmark_model_) in ~BookmarkTagModel() 99 bookmark_model_->RemoveObserver(this); in ~BookmarkTagModel() 113 DCHECK(bookmark_model_); in BeginExtensiveChanges() 114 bookmark_model_->BeginExtensiveChanges(); in BeginExtensiveChanges() 118 DCHECK(bookmark_model_); in EndExtensiveChanges() 119 bookmark_model_->EndExtensiveChanges(); in EndExtensiveChanges() 123 DCHECK(bookmark_model_); in IsDoingExtensiveChanges() [all …]
|
D | bookmark_expanded_state_tracker.cc | 17 : bookmark_model_(bookmark_model), in BookmarkExpandedStateTracker() 32 if (!bookmark_model_->loaded()) in GetExpandedNodes() 49 (node = bookmark_model_->GetNodeByID(node_id)) != NULL && in GetExpandedNodes()
|
D | bookmark_expanded_state_tracker.h | 46 BookmarkModel* bookmark_model_; variable
|
/external/chromium_org/chrome/browser/sync/glue/ |
D | bookmark_data_type_controller.cc | 31 bookmark_model_(NULL), in BookmarkDataTypeController() 50 bookmark_model_->RemoveObserver(this); in Observe() 58 if (installed_bookmark_observer_ && bookmark_model_) { in ~BookmarkDataTypeController() 60 bookmark_model_->RemoveObserver(this); in ~BookmarkDataTypeController() 65 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in StartModels() 67 bookmark_model_->AddObserver(this); in StartModels() 114 if (!bookmark_model_ || !bookmark_model_->loaded()) in DependentsLoaded()
|
D | bookmark_model_associator.cc | 200 : bookmark_model_(bookmark_model), in BookmarkModelAssociator() 207 DCHECK(bookmark_model_); in BookmarkModelAssociator() 218 DCHECK(bookmark_model_->loaded()); in UpdatePermanentNodeVisibility() 220 bookmark_model_->SetPermanentNodeVisible( in UpdatePermanentNodeVisibility() 222 id_map_.find(bookmark_model_->mobile_node()->id()) != id_map_.end()); in UpdatePermanentNodeVisibility() 381 new ScopedAssociationUpdater(bookmark_model_)); in AssociateModels() 407 DCHECK(bookmark_model_->loaded()); in BuildAssociations() 411 if (!AssociateTaggedPermanentNode(bookmark_model_->bookmark_bar_node(), in BuildAssociations() 419 if (!AssociateTaggedPermanentNode(bookmark_model_->other_node(), in BuildAssociations() 427 if (!AssociateTaggedPermanentNode(bookmark_model_->mobile_node(), in BuildAssociations() [all …]
|
D | bookmark_change_processor.cc | 50 bookmark_model_(NULL), in BookmarkChangeProcessor() 58 if (bookmark_model_) in ~BookmarkChangeProcessor() 59 bookmark_model_->RemoveObserver(this); in ~BookmarkChangeProcessor() 66 DCHECK(!bookmark_model_); in StartImpl() 67 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in StartImpl() 68 DCHECK(bookmark_model_->loaded()); in StartImpl() 69 bookmark_model_->AddObserver(this); in StartImpl() 134 UpdateTransactionVersion(new_version, bookmark_model_, in RemoveSyncNodeHierarchy() 143 RemoveAllChildNodes(&trans, bookmark_model_->bookmark_bar_node()->id()); in RemoveAllSyncNodes() 144 RemoveAllChildNodes(&trans, bookmark_model_->other_node()->id()); in RemoveAllSyncNodes() [all …]
|
D | bookmark_data_type_controller_unittest.cc | 105 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel() 108 test::WaitForBookmarkModelToLoad(bookmark_model_); in CreateBookmarkModel() 110 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel() 153 BookmarkModel* bookmark_model_; member in SyncBookmarkDataTypeControllerTest 185 bookmark_model_->Load(profile_.GetIOTaskRunner()); in TEST_F() 186 test::WaitForBookmarkModelToLoad(bookmark_model_); in TEST_F()
|
D | bookmark_data_type_controller.h | 54 BookmarkModel* bookmark_model_; variable
|
/external/chromium_org/chrome/browser/ui/bookmarks/ |
D | bookmark_tab_helper.cc | 49 if (bookmark_model_) in ~BookmarkTabHelper() 50 bookmark_model_->RemoveObserver(this); in ~BookmarkTabHelper() 82 bookmark_model_(NULL), in BookmarkTabHelper() 87 bookmark_model_= BookmarkModelFactory::GetForProfile(profile); in BookmarkTabHelper() 88 if (bookmark_model_) in BookmarkTabHelper() 89 bookmark_model_->AddObserver(this); in BookmarkTabHelper() 94 is_starred_ = (bookmark_model_ && in UpdateStarredStateForCurrentURL() 95 bookmark_model_->IsBookmarked(chrome::GetURLToBookmark(web_contents()))); in UpdateStarredStateForCurrentURL()
|
D | recently_used_folders_combo_model.cc | 52 : bookmark_model_(model), in RecentlyUsedFoldersComboModel() 54 bookmark_model_->AddObserver(this); in RecentlyUsedFoldersComboModel() 96 bookmark_model_->RemoveObserver(this); in ~RecentlyUsedFoldersComboModel() 211 !bookmark_model_->is_permanent_node(i->node)) { in BookmarkAllNodesRemoved() 232 bookmark_model_->Move(node, new_parent, new_parent->child_count()); in MaybeChangeParent()
|
D | bookmark_tab_helper.h | 88 BookmarkModel* bookmark_model_; variable
|
/external/chromium/chrome/browser/sync/glue/ |
D | bookmark_model_associator.cc | 163 : bookmark_model_(bookmark_model), in BookmarkModelAssociator() 169 DCHECK(bookmark_model_); in BookmarkModelAssociator() 333 DCHECK(bookmark_model_->IsLoaded()); in BuildAssociations() 337 if (!AssociateTaggedPermanentNode(bookmark_model_->other_node(), in BuildAssociations() 343 if (!AssociateTaggedPermanentNode(bookmark_model_->GetBookmarkBarNode(), in BuildAssociations() 350 bookmark_model_->GetBookmarkBarNode()->id()); in BuildAssociations() 353 bookmark_model_->other_node()->id()); in BuildAssociations() 389 bookmark_model_->Move(child_node, parent_node, index); in BuildAssociations() 392 &sync_child_node, child_node, bookmark_model_)) { in BuildAssociations() 394 child_node, bookmark_model_, &sync_child_node); in BuildAssociations() [all …]
|
D | bookmark_data_type_controller_unittest.cc | 67 WillOnce(Return(&bookmark_model_)); in SetStartExpectations() 68 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(true)); in SetStartExpectations() 92 BookmarkModelMock bookmark_model_; member in BookmarkDataTypeControllerTest 112 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F() 138 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F() 187 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F()
|
D | bookmark_change_processor.cc | 27 bookmark_model_(NULL), in BookmarkChangeProcessor() 36 DCHECK(!bookmark_model_); in StartImpl() 37 bookmark_model_ = profile->GetBookmarkModel(); in StartImpl() 38 DCHECK(bookmark_model_->IsLoaded()); in StartImpl() 39 bookmark_model_->AddObserver(this); in StartImpl() 44 DCHECK(bookmark_model_); in StopImpl() 45 bookmark_model_->RemoveObserver(this); in StopImpl() 46 bookmark_model_ = NULL; in StopImpl() 138 bookmark_model_ = NULL; in BookmarkModelBeingDeleted() 372 BookmarkModel* model = bookmark_model_; in ApplyChangesFromSyncModel()
|
D | bookmark_model_associator.h | 128 BookmarkModel* bookmark_model_; variable
|
/external/chromium_org/chrome/browser/ui/webui/ntp/android/ |
D | bookmarks_handler.cc | 84 : bookmark_model_(NULL), in BookmarksHandler() 91 if (bookmark_model_) in ~BookmarksHandler() 92 bookmark_model_->RemoveObserver(this); in ~BookmarksHandler() 110 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in RegisterMessages() 111 if (bookmark_model_) { in RegisterMessages() 112 bookmark_model_->AddObserver(this); in RegisterMessages() 116 extensive_changes_ = bookmark_model_->IsDoingExtensiveChanges(); in RegisterMessages() 183 bookmark_model_->Remove(parent_node, parent_node->GetIndexOf(node)); in HandleDeleteBookmark() 285 if (bookmark_model_ && folder == bookmark_model_->mobile_node() && in PopulateBookmarksInFolder() 297 if (bookmark_model_ && folder == bookmark_model_->mobile_node() && in PopulateBookmarksInFolder() [all …]
|
/external/chromium_org/chrome/browser/android/bookmarks/ |
D | bookmarks_bridge.cc | 37 bookmark_model_(NULL), in BookmarksBridge() 41 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in BookmarksBridge() 44 bookmark_model_->AddObserver(this); in BookmarksBridge() 59 if (bookmark_model_->IsDoingExtensiveChanges()) in BookmarksBridge() 60 ExtensiveBookmarkChangesBeginning(bookmark_model_); in BookmarksBridge() 64 bookmark_model_->RemoveObserver(this); in ~BookmarksBridge() 115 if (folder == bookmark_model_->mobile_node() && in GetBookmarksForFolder() 129 if (folder == bookmark_model_->mobile_node() && in GetBookmarksForFolder() 188 bookmark_model_->Remove(parent_node, parent_node->GetIndexOf(node)); in DeleteBookmark() 237 node = bookmark_model_->GetNodeByID(static_cast<int64>(node_id)); in GetNodeByID() [all …]
|
/external/chromium_org/chrome/browser/autocomplete/ |
D | bookmark_provider.cc | 31 bookmark_model_(NULL) { in BookmarkProvider() 33 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in BookmarkProvider() 66 if (!bookmark_model_) in DoAutocomplete() 97 bookmark_model_->GetBookmarksWithTitlesMatching(input.text(), in DoAutocomplete() 251 bookmark_model_->GetNodesByURL(url, &nodes); in TitleMatchToACMatch()
|
D | bookmark_provider.h | 39 bookmark_model_ = bookmark_model; in set_bookmark_model_for_testing() 63 BookmarkModel* bookmark_model_; variable
|
/external/chromium/chrome/browser/history/ |
D | history_backend_unittest.cc | 72 HistoryBackendTest() : bookmark_model_(NULL), loaded_(false) {} in HistoryBackendTest() 142 BookmarkModel bookmark_model_; member in history::HistoryBackendTest 157 &bookmark_model_); in SetUp() 285 bookmark_model_.AddURL( in TEST_F() 286 bookmark_model_.GetBookmarkBarNode(), 0, string16(), row1.url()); in TEST_F() 337 EXPECT_TRUE(bookmark_model_.IsBookmarked(row1.url())); in TEST_F() 387 bookmark_model_.SetURLStarred(row1.url(), string16(), true); in TEST_F() 388 bookmark_model_.SetURLStarred(row2.url(), string16(), true); in TEST_F() 407 bookmark_model_.SetURLStarred(row2.url(), string16(), false); in TEST_F() 423 bookmark_model_.SetURLStarred(row1.url(), string16(), false); in TEST_F() [all …]
|
D | expire_history_backend_unittest.cc | 54 : bookmark_model_(NULL), in ExpireHistoryTest() 57 ALLOW_THIS_IN_INITIALIZER_LIST(expirer_(this, &bookmark_model_)), in ExpireHistoryTest() 89 bookmark_model_.AddURL( in StarURL() 90 bookmark_model_.GetBookmarkBarNode(), 0, string16(), url); in StarURL() 101 BookmarkModel bookmark_model_; member in history::ExpireHistoryTest 581 bookmark_model_.SetURLStarred(url, string16(), false); in TEST_F()
|
/external/chromium_org/chrome/browser/android/provider/ |
D | chrome_browser_provider.cc | 1162 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in ChromeBrowserProvider() 1169 bookmark_model_->AddObserver(this); in ChromeBrowserProvider() 1184 bookmark_model_->RemoveObserver(this); in ~ChromeBrowserProvider() 1204 AddBookmarkTask task(bookmark_model_); in AddBookmark() 1209 RemoveBookmarkTask task(bookmark_model_); in RemoveBookmark() 1224 UpdateBookmarkTask task(bookmark_model_); in UpdateBookmark() 1243 visits, parent_id, &row, bookmark_model_); in AddBookmarkFromAPI() 1325 visits, parent_id, &row, bookmark_model_); in UpdateBookmarkFromAPI() 1483 BookmarkNodeExistsTask task(bookmark_model_); in BookmarkNodeExists() 1496 CreateBookmarksFolderOnceTask task(bookmark_model_); in CreateBookmarksFolderOnce() [all …]
|
/external/chromium_org/chrome/browser/history/ |
D | expire_history_backend_unittest.cc | 59 : bookmark_model_(NULL), in ExpireHistoryTest() 62 expirer_(this, &bookmark_model_), in ExpireHistoryTest() 89 bookmark_model_.AddURL( in StarURL() 90 bookmark_model_.bookmark_bar_node(), 0, base::string16(), url); in StarURL() 101 BookmarkModel bookmark_model_; member in history::ExpireHistoryTest 487 bookmark_utils::RemoveAllBookmarks(&bookmark_model_, url); in TEST_F()
|