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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 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
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/ui/bookmarks/bookmark_tab_helper.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
9 #include "chrome/browser/defaults.h" 9 #include "chrome/browser/defaults.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 void BookmarkTabHelper::DidNavigateMainFrame( 128 void BookmarkTabHelper::DidNavigateMainFrame(
129 const content::LoadCommittedDetails& /*details*/, 129 const content::LoadCommittedDetails& /*details*/,
130 const content::FrameNavigateParams& /*params*/) { 130 const content::FrameNavigateParams& /*params*/) {
131 UpdateStarredStateForCurrentURL(); 131 UpdateStarredStateForCurrentURL();
132 } 132 }
133 133
134 void BookmarkTabHelper::DidStartNavigationToPendingEntry( 134 void BookmarkTabHelper::DidStartNavigationToPendingEntry(
135 const GURL& /*url*/, 135 const GURL& /*url*/,
136 content::NavigationController::ReloadType /*reload_type*/) { 136 content::ReloadType /*reload_type*/) {
137 UpdateStarredStateForCurrentURL(); 137 UpdateStarredStateForCurrentURL();
138 } 138 }
139 139
140 void BookmarkTabHelper::DidAttachInterstitialPage() { 140 void BookmarkTabHelper::DidAttachInterstitialPage() {
141 // Interstitials are not necessarily starred just because the page that 141 // Interstitials are not necessarily starred just because the page that
142 // created them is, so star state has to track interstitial attach/detach if 142 // created them is, so star state has to track interstitial attach/detach if
143 // necessary. 143 // necessary.
144 UpdateStarredStateForCurrentURL(); 144 UpdateStarredStateForCurrentURL();
145 } 145 }
146 146
147 void BookmarkTabHelper::DidDetachInterstitialPage() { 147 void BookmarkTabHelper::DidDetachInterstitialPage() {
148 UpdateStarredStateForCurrentURL(); 148 UpdateStarredStateForCurrentURL();
149 } 149 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698