OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
7 | 7 |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
10 #include "chrome/common/notification_registrar.h" | 10 #include "chrome/common/notification_registrar.h" |
| 11 #include "webkit/glue/webpreferences.h" |
11 | 12 |
12 class RenderViewHostFactory; | 13 class RenderViewHostFactory; |
13 class TestRenderViewHost; | 14 class TestRenderViewHost; |
14 | 15 |
15 // Subclass TabContents to ensure it creates TestRenderViewHosts and does | 16 // Subclass TabContents to ensure it creates TestRenderViewHosts and does |
16 // not do anything involving views. | 17 // not do anything involving views. |
17 class TestTabContents : public TabContents { | 18 class TestTabContents : public TabContents { |
18 public: | 19 public: |
19 // The render view host factory will be passed on to the | 20 // The render view host factory will be passed on to the |
20 TestTabContents(Profile* profile, SiteInstance* instance); | 21 TestTabContents(Profile* profile, SiteInstance* instance); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // TestTabContents. The caller owns the returned object. | 57 // TestTabContents. The caller owns the returned object. |
57 virtual TabContents* Clone(); | 58 virtual TabContents* Clone(); |
58 | 59 |
59 // Set by individual tests. | 60 // Set by individual tests. |
60 bool transition_cross_site; | 61 bool transition_cross_site; |
61 | 62 |
62 NotificationRegistrar registrar_; | 63 NotificationRegistrar registrar_; |
63 }; | 64 }; |
64 | 65 |
65 #endif // CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ | 66 #endif // CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ |
OLD | NEW |