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

Side by Side Diff: content/test/test_web_contents.h

Issue 701953006: PlzNavigate: Speculatively spawns a renderer process for navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and one more round of CR work. Created 6 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) 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 CONTENT_TEST_TEST_WEB_CONTENTS_H_ 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_
7 7
8 #include "content/browser/web_contents/web_contents_impl.h" 8 #include "content/browser/web_contents/web_contents_impl.h"
9 #include "content/public/common/web_preferences.h" 9 #include "content/public/common/web_preferences.h"
10 #include "content/public/test/web_contents_tester.h" 10 #include "content/public/test/web_contents_tester.h"
(...skipping 18 matching lines...) Expand all
29 static TestWebContents* Create(BrowserContext* browser_context, 29 static TestWebContents* Create(BrowserContext* browser_context,
30 SiteInstance* instance); 30 SiteInstance* instance);
31 31
32 // WebContentsImpl overrides (returning the same values, but in Test* types) 32 // WebContentsImpl overrides (returning the same values, but in Test* types)
33 TestRenderFrameHost* GetMainFrame() override; 33 TestRenderFrameHost* GetMainFrame() override;
34 TestRenderViewHost* GetRenderViewHost() const override; 34 TestRenderViewHost* GetRenderViewHost() const override;
35 35
36 // WebContentsTester implementation. 36 // WebContentsTester implementation.
37 void CommitPendingNavigation() override; 37 void CommitPendingNavigation() override;
38 TestRenderFrameHost* GetPendingMainFrame() const override; 38 TestRenderFrameHost* GetPendingMainFrame() const override;
39 TestRenderFrameHost* GetSpeculativeMainFrame() const override;
39 void NavigateAndCommit(const GURL& url) override; 40 void NavigateAndCommit(const GURL& url) override;
40 void TestSetIsLoading(bool value) override; 41 void TestSetIsLoading(bool value) override;
41 void ProceedWithCrossSiteNavigation() override; 42 void ProceedWithCrossSiteNavigation() override;
42 void TestDidNavigate(RenderFrameHost* render_frame_host, 43 void TestDidNavigate(RenderFrameHost* render_frame_host,
43 int page_id, 44 int page_id,
44 const GURL& url, 45 const GURL& url,
45 ui::PageTransition transition) override; 46 ui::PageTransition transition) override;
46 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, 47 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host,
47 int page_id, 48 int page_id,
48 const GURL& url, 49 const GURL& url,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 // Expectations for arguments of |SetHistoryOffsetAndLength()|. 123 // Expectations for arguments of |SetHistoryOffsetAndLength()|.
123 bool expect_set_history_offset_and_length_; 124 bool expect_set_history_offset_and_length_;
124 int expect_set_history_offset_and_length_history_offset_; 125 int expect_set_history_offset_and_length_history_offset_;
125 int expect_set_history_offset_and_length_history_length_; 126 int expect_set_history_offset_and_length_history_length_;
126 }; 127 };
127 128
128 } // namespace content 129 } // namespace content
129 130
130 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ 131 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698