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

Side by Side Diff: chrome/browser/tab_contents/test_tab_contents.h

Issue 2934004: Try to cut down Browser/TabContents header dependencies. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix unit tests compile Created 10 years, 5 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/toolbar_model.cc » ('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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698