Home
last modified time | relevance | path

Searched refs:bookmark_model_ (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/chrome/browser/history/android/
Dbookmark_model_sql_handler_unittest.cc32 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 …]
Dandroid_provider_backend_unittest.cc119 bookmark_model_(NULL), in AndroidProviderBackendTest()
135 bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile); in SetUp()
138 test::WaitForBookmarkModelToLoad(bookmark_model_); in SetUp()
139 ASSERT_TRUE(bookmark_model_); in SetUp()
157 const BookmarkNode* mobile_node = bookmark_model_->mobile_node(); in AddBookmark()
159 ASSERT_TRUE(bookmark_model_->AddURL(mobile_node, 0, base::string16(), url)); in AddBookmark()
205 BookmarkModel* bookmark_model_; member in history::AndroidProviderBackendTest
238 ASSERT_TRUE(bookmark_model_->AddURL(bookmark_model_->bookmark_bar_node(), 0, in TEST_F()
543 ASSERT_EQ(1, bookmark_model_->mobile_node()->child_count()); in TEST_F()
544 const BookmarkNode* child = bookmark_model_->mobile_node()->GetChild(0); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync/glue/
Dbookmark_data_type_controller.cc35 bookmark_model_(NULL), in BookmarkDataTypeController()
54 bookmark_model_->RemoveObserver(this); in Observe()
62 if (installed_bookmark_observer_ && bookmark_model_) { in ~BookmarkDataTypeController()
64 bookmark_model_->RemoveObserver(this); in ~BookmarkDataTypeController()
69 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in StartModels()
71 bookmark_model_->AddObserver(this); in StartModels()
84 if (bookmark_model_ && installed_bookmark_observer_) { in CleanUpState()
85 bookmark_model_->RemoveObserver(this); in CleanUpState()
122 if (!bookmark_model_ || !bookmark_model_->loaded()) in DependentsLoaded()
Dbookmark_model_associator.cc218 : bookmark_model_(bookmark_model), in BookmarkModelAssociator()
225 DCHECK(bookmark_model_); in BookmarkModelAssociator()
236 DCHECK(bookmark_model_->loaded()); in UpdatePermanentNodeVisibility()
244 int64 id = bookmark_model_->PermanentNode(bookmark_node_types[i])->id(); in UpdatePermanentNodeVisibility()
245 bookmark_model_->SetPermanentNodeVisible( in UpdatePermanentNodeVisibility()
414 new ScopedAssociationUpdater(bookmark_model_)); in AssociateModels()
440 DCHECK(bookmark_model_->loaded()); in BuildAssociations()
444 if (!AssociateTaggedPermanentNode(bookmark_model_->bookmark_bar_node(), in BuildAssociations()
452 if (!AssociateTaggedPermanentNode(bookmark_model_->other_node(), in BuildAssociations()
460 if (!AssociateTaggedPermanentNode(bookmark_model_->mobile_node(), in BuildAssociations()
[all …]
Dbookmark_change_processor.cc51 bookmark_model_(NULL), in BookmarkChangeProcessor()
61 if (bookmark_model_) in ~BookmarkChangeProcessor()
62 bookmark_model_->RemoveObserver(this); in ~BookmarkChangeProcessor()
67 DCHECK(!bookmark_model_); in StartImpl()
68 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in StartImpl()
69 DCHECK(bookmark_model_->loaded()); in StartImpl()
70 bookmark_model_->AddObserver(this); in StartImpl()
135 UpdateTransactionVersion(new_version, bookmark_model_, in RemoveSyncNodeHierarchy()
144 RemoveAllChildNodes(&trans, bookmark_model_->bookmark_bar_node()->id()); in RemoveAllSyncNodes()
145 RemoveAllChildNodes(&trans, bookmark_model_->other_node()->id()); in RemoveAllSyncNodes()
[all …]
Dbookmark_data_type_controller_unittest.cc124 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel()
127 test::WaitForBookmarkModelToLoad(bookmark_model_); in CreateBookmarkModel()
129 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel()
170 BookmarkModel* bookmark_model_; member in SyncBookmarkDataTypeControllerTest
202 bookmark_model_->Load(profile_.GetPrefs(), in TEST_F()
208 test::WaitForBookmarkModelToLoad(bookmark_model_); in TEST_F()
Dbookmark_data_type_controller.h55 BookmarkModel* bookmark_model_; variable
Dbookmark_model_associator.h150 BookmarkModel* bookmark_model_; variable
Dbookmark_change_processor.h211 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/history/
Dchrome_history_client.cc14 : bookmark_model_(bookmark_model) { in ChromeHistoryClient()
15 DCHECK(bookmark_model_); in ChromeHistoryClient()
19 bookmark_model_->BlockTillLoaded(); in BlockUntilBookmarksLoaded()
23 return bookmark_model_->IsBookmarked(url); in IsBookmarked()
29 bookmark_model_->GetBookmarks(&bookmarks_url_and_title); in GetBookmarks()
56 bookmark_model_->Shutdown(); in Shutdown()
Dchrome_history_client.h31 BookmarkModel* bookmark_model_;
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_tab_helper.cc49 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()
Drecently_used_folders_combo_model.cc52 : bookmark_model_(model), in RecentlyUsedFoldersComboModel()
54 bookmark_model_->AddObserver(this); in RecentlyUsedFoldersComboModel()
95 bookmark_model_->RemoveObserver(this); in ~RecentlyUsedFoldersComboModel()
211 !bookmark_model_->is_permanent_node(i->node)) { in BookmarkAllUserNodesRemoved()
234 bookmark_model_->Move(node, new_parent, new_parent->child_count()); in MaybeChangeParent()
Dbookmark_tab_helper.h92 BookmarkModel* bookmark_model_; variable
Drecently_used_folders_combo_model.h83 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/android/bookmarks/
Dbookmarks_bridge.cc38 bookmark_model_(NULL), in BookmarksBridge()
43 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in BookmarksBridge()
47 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()
119 if (folder == bookmark_model_->mobile_node() && in GetBookmarksForFolder()
178 bookmark_model_->Remove(parent_node, parent_node->GetIndexOf(node)); in DeleteBookmark()
200 bookmark_model_->Move(node, new_parent_node, index); in MoveBookmark()
242 node = GetBookmarkNodeByID(bookmark_model_, static_cast<int64>(node_id)); in GetNodeByID()
[all …]
Dbookmarks_bridge.h110 BookmarkModel* bookmark_model_; // weak variable
/external/chromium_org/components/bookmarks/browser/
Dbookmark_expanded_state_tracker.cc19 : bookmark_model_(bookmark_model), in BookmarkExpandedStateTracker()
34 if (!bookmark_model_->loaded()) in GetExpandedNodes()
52 (node = GetBookmarkNodeByID(bookmark_model_, node_id)) != NULL && in GetExpandedNodes()
Dbookmark_expanded_state_tracker.h52 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/autocomplete/
Dbookmark_provider.cc36 bookmark_model_(NULL), in BookmarkProvider()
39 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in BookmarkProvider()
61 if (!bookmark_model_) in DoAutocomplete()
87 bookmark_model_->GetBookmarksMatching(input.text(), in DoAutocomplete()
288 bookmark_model_->GetNodesByURL(url, &nodes); in BookmarkMatchToACMatch()
Dbookmark_provider.h42 bookmark_model_ = bookmark_model; in set_bookmark_model_for_testing()
73 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/android/provider/
Dchrome_browser_provider.cc1176 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in ChromeBrowserProvider()
1183 bookmark_model_->AddObserver(this); in ChromeBrowserProvider()
1198 bookmark_model_->RemoveObserver(this); in ~ChromeBrowserProvider()
1218 AddBookmarkTask task(bookmark_model_); in AddBookmark()
1223 RemoveBookmarkTask task(bookmark_model_); in RemoveBookmark()
1238 UpdateBookmarkTask task(bookmark_model_); in UpdateBookmark()
1257 visits, parent_id, &row, bookmark_model_); in AddBookmarkFromAPI()
1339 visits, parent_id, &row, bookmark_model_); in UpdateBookmarkFromAPI()
1497 BookmarkNodeExistsTask task(bookmark_model_); in BookmarkNodeExists()
1510 CreateBookmarksFolderOnceTask task(bookmark_model_); in CreateBookmarksFolderOnce()
[all …]
Dchrome_browser_provider.h191 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/extensions/api/bookmark_manager_private/
Dbookmark_manager_private_api.cc172 : browser_context_(browser_context), bookmark_model_(bookmark_model) { in BookmarkManagerPrivateEventRouter()
173 bookmark_model_->AddObserver(this); in BookmarkManagerPrivateEventRouter()
177 if (bookmark_model_) in ~BookmarkManagerPrivateEventRouter()
178 bookmark_model_->RemoveObserver(this); in ~BookmarkManagerPrivateEventRouter()
192 bookmark_model_ = NULL; in BookmarkModelBeingDeleted()
Dbookmark_manager_private_api.h53 BookmarkModel* bookmark_model_; variable