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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Some cleanup Created 9 years 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
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 CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
(...skipping 30 matching lines...) Expand all
41 const content::Referrer& referrer, 41 const content::Referrer& referrer,
42 content::PageTransition transition); 42 content::PageTransition transition);
43 43
44 // Promote GetWebkitPrefs to public. 44 // Promote GetWebkitPrefs to public.
45 WebPreferences TestGetWebkitPrefs() { 45 WebPreferences TestGetWebkitPrefs() {
46 return GetWebkitPrefs(); 46 return GetWebkitPrefs();
47 } 47 }
48 48
49 // Prevent interaction with views. 49 // Prevent interaction with views.
50 virtual bool CreateRenderViewForRenderManager( 50 virtual bool CreateRenderViewForRenderManager(
51 RenderViewHost* render_view_host) OVERRIDE; 51 RenderViewHost* render_view_host, int opener_route_id) OVERRIDE;
52 virtual void UpdateRenderViewSizeForRenderManager() OVERRIDE {} 52 virtual void UpdateRenderViewSizeForRenderManager() OVERRIDE {}
53 53
54 // Returns a clone of this TestTabContents. The returned object is also a 54 // Returns a clone of this TestTabContents. The returned object is also a
55 // TestTabContents. The caller owns the returned object. 55 // TestTabContents. The caller owns the returned object.
56 virtual TabContents* Clone() OVERRIDE; 56 virtual TabContents* Clone() OVERRIDE;
57 57
58 // Creates a pending navigation to the given URL with the default parameters 58 // Creates a pending navigation to the given URL with the default parameters
59 // and then commits the load with a page ID one larger than any seen. This 59 // and then commits the load with a page ID one larger than any seen. This
60 // emulates what happens on a new navigation. 60 // emulates what happens on a new navigation.
61 void NavigateAndCommit(const GURL& url); 61 void NavigateAndCommit(const GURL& url);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Expectations for arguments of |SetHistoryLengthAndPrune()|. 97 // Expectations for arguments of |SetHistoryLengthAndPrune()|.
98 bool expect_set_history_length_and_prune_; 98 bool expect_set_history_length_and_prune_;
99 scoped_refptr<const SiteInstance> 99 scoped_refptr<const SiteInstance>
100 expect_set_history_length_and_prune_site_instance_; 100 expect_set_history_length_and_prune_site_instance_;
101 int expect_set_history_length_and_prune_history_length_; 101 int expect_set_history_length_and_prune_history_length_;
102 int32 expect_set_history_length_and_prune_min_page_id_; 102 int32 expect_set_history_length_and_prune_min_page_id_;
103 }; 103 };
104 104
105 #endif // CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_ 105 #endif // CONTENT_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698