| OLD | NEW |
| 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 #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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Destroys the old tab. This is invoked if script tries to close the page. | 37 // Destroys the old tab. This is invoked if script tries to close the page. |
| 38 void Destroy(WebContentsDelegateImpl* delegate); | 38 void Destroy(WebContentsDelegateImpl* delegate); |
| 39 | 39 |
| 40 // 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 |
| 41 // tabs managed by InstantUnloadHandler. | 41 // tabs managed by InstantUnloadHandler. |
| 42 Browser* const browser_; | 42 Browser* const browser_; |
| 43 | 43 |
| 44 ScopedVector<WebContentsDelegateImpl> delegates_; | 44 ScopedVector<WebContentsDelegateImpl> delegates_; |
| 45 | 45 |
| 46 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantUnloadHandler); | 46 DISALLOW_COPY_AND_ASSIGN(InstantUnloadHandler); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_ | 49 #endif // CHROME_BROWSER_INSTANT_INSTANT_UNLOAD_HANDLER_H_ |
| OLD | NEW |