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

Side by Side Diff: chrome/browser/instant/instant_unload_handler.h

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/instant/instant_loader.h ('k') | chrome/browser/omnibox_search_hint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INSTANT_INSTANT_UNLOAD_HANDLER_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 10
11 class Browser; 11 class Browser;
12 class TabContentsWrapper; 12 class TabContents;
13 typedef TabContents TabContentsWrapper;
13 14
14 // InstantUnloadHandler makes sure the before unload and unload handler is run 15 // InstantUnloadHandler makes sure the before unload and unload handler is run
15 // when using instant. When the user commits the instant preview the existing 16 // when using instant. When the user commits the instant preview the existing
16 // TabContentsWrapper is passed to |RunUnloadListenersOrDestroy|. If the tab has 17 // TabContentsWrapper is passed to |RunUnloadListenersOrDestroy|. If the tab has
17 // no before unload or unload listener the tab is deleted, otherwise the before 18 // no before unload or unload listener the tab is deleted, otherwise the before
18 // unload and unload listener is executed. If the before unload listener shows a 19 // unload and unload listener is executed. If the before unload listener shows a
19 // dialog the tab is added back to the tabstrip at its original location next to 20 // dialog the tab is added back to the tabstrip at its original location next to
20 // the instant page. 21 // the instant page.
21 class InstantUnloadHandler { 22 class InstantUnloadHandler {
22 public: 23 public:
(...skipping 16 matching lines...) Expand all
39 // TODO(sky): browser really needs to wait to close until there are no more 40 // TODO(sky): browser really needs to wait to close until there are no more
40 // tabs managed by InstantUnloadHandler. 41 // tabs managed by InstantUnloadHandler.
41 Browser* browser_; 42 Browser* browser_;
42 43
43 ScopedVector<TabContentsDelegateImpl> delegates_; 44 ScopedVector<TabContentsDelegateImpl> delegates_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(InstantUnloadHandler); 46 DISALLOW_COPY_AND_ASSIGN(InstantUnloadHandler);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_ 49 #endif // CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader.h ('k') | chrome/browser/omnibox_search_hint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698