OLD | NEW |
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_TAB_RESTORE_SERVICE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/browser/sessions/tab_restore_service_delegate.h" | 12 #include "chrome/browser/sessions/tab_restore_service_delegate.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class Profile; | |
16 class SessionStorageNamespace; | 15 class SessionStorageNamespace; |
17 class TabContents; | 16 class TabContents; |
18 class TabNavigation; | 17 class TabNavigation; |
19 | 18 |
20 // Implementation of TabRestoreServiceDelegate which uses an instance of | 19 // Implementation of TabRestoreServiceDelegate which uses an instance of |
21 // Browser in order to fulfil its duties. | 20 // Browser in order to fulfil its duties. |
22 class BrowserTabRestoreServiceDelegate : public TabRestoreServiceDelegate { | 21 class BrowserTabRestoreServiceDelegate : public TabRestoreServiceDelegate { |
23 public: | 22 public: |
24 explicit BrowserTabRestoreServiceDelegate(Browser* browser) | 23 explicit BrowserTabRestoreServiceDelegate(Browser* browser) |
25 : browser_(browser) {} | 24 : browser_(browser) {} |
(...skipping 24 matching lines...) Expand all Loading... |
50 SessionStorageNamespace* session_storage_namespace) OVERRIDE; | 49 SessionStorageNamespace* session_storage_namespace) OVERRIDE; |
51 virtual void CloseTab() OVERRIDE; | 50 virtual void CloseTab() OVERRIDE; |
52 | 51 |
53 private: | 52 private: |
54 Browser* browser_; | 53 Browser* browser_; |
55 | 54 |
56 DISALLOW_COPY_AND_ASSIGN(BrowserTabRestoreServiceDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(BrowserTabRestoreServiceDelegate); |
57 }; | 56 }; |
58 | 57 |
59 #endif // CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_UI_BROWSER_TAB_RESTORE_SERVICE_DELEGATE_H_ |
OLD | NEW |