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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 6905049: Detect removed files and reflect the state in chrome://downloads and the download shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typo Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // disposition type of the command will be stored in |*disposition| if it's 642 // disposition type of the command will be stored in |*disposition| if it's
643 // not null. 643 // not null.
644 int GetLastBlockedCommand(WindowOpenDisposition* disposition); 644 int GetLastBlockedCommand(WindowOpenDisposition* disposition);
645 645
646 // Called by browser::Navigate() when a navigation has occurred in a tab in 646 // Called by browser::Navigate() when a navigation has occurred in a tab in
647 // this Browser. Updates the UI for the start of this navigation. 647 // this Browser. Updates the UI for the start of this navigation.
648 void UpdateUIForNavigationInTab(TabContentsWrapper* contents, 648 void UpdateUIForNavigationInTab(TabContentsWrapper* contents,
649 PageTransition::Type transition, 649 PageTransition::Type transition,
650 bool user_initiated); 650 bool user_initiated);
651 651
652 // Checks whether downloaded files still exist. Updates state of downloads
653 // that refer to removed files. The check runs in the background and may
654 // finish asynchronously after this method returns.
655 void CheckForFilesRemoval();
656
652 // Called by browser::Navigate() to retrieve the home page if no URL is 657 // Called by browser::Navigate() to retrieve the home page if no URL is
653 // specified. 658 // specified.
654 GURL GetHomePage() const; 659 GURL GetHomePage() const;
655 660
656 // Interface implementations //////////////////////////////////////////////// 661 // Interface implementations ////////////////////////////////////////////////
657 662
658 // Overridden from PageNavigator: 663 // Overridden from PageNavigator:
659 virtual void OpenURL(const GURL& url, const GURL& referrer, 664 virtual void OpenURL(const GURL& url, const GURL& referrer,
660 WindowOpenDisposition disposition, 665 WindowOpenDisposition disposition,
661 PageTransition::Type transition); 666 PageTransition::Type transition);
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 // Helper which implements the TabRestoreServiceDelegate interface. 1209 // Helper which implements the TabRestoreServiceDelegate interface.
1205 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; 1210 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_;
1206 1211
1207 scoped_ptr<InstantController> instant_; 1212 scoped_ptr<InstantController> instant_;
1208 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1213 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1209 1214
1210 DISALLOW_COPY_AND_ASSIGN(Browser); 1215 DISALLOW_COPY_AND_ASSIGN(Browser);
1211 }; 1216 };
1212 1217
1213 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1218 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698