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

Unified Diff: content/public/test/web_contents_tester.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/web_contents_tester.h
diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h
index bb500cc431f355f3ae853994b6a206ddc0eef5e3..2e414abfa1d9b53bc74772039f7860085c69365a 100644
--- a/content/public/test/web_contents_tester.h
+++ b/content/public/test/web_contents_tester.h
@@ -8,20 +8,22 @@
#include <string>
#include "content/public/browser/site_instance.h"
#include "ui/base/page_transition_types.h"
class GURL;
namespace content {
class BrowserContext;
+class NavigationData;
+class NavigationHandle;
class RenderFrameHost;
class RenderViewHost;
class WebContents;
struct Referrer;
// This interface allows embedders of content/ to write tests that depend on a
// test version of WebContents. This interface can be retrieved from any
// WebContents that was retrieved via a call to
// RenderViewHostTestHarness::GetWebContents() (directly or indirectly) or
// constructed explicitly via CreateTestWebContents.
@@ -110,18 +112,23 @@ class WebContentsTester {
const GURL& url,
ui::PageTransition transition) = 0;
virtual void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host,
int page_id,
int nav_entry_id,
bool did_create_new_entry,
const GURL& url,
const Referrer& referrer,
ui::PageTransition transition) = 0;
+ // Sets NavgationData on |navigation_handle|.
+ virtual void SetNavigationData(
+ NavigationHandle* navigation_handle,
+ std::unique_ptr<NavigationData> navigation_data) = 0;
+
// Returns headers that were passed in the previous SaveFrameWithHeaders(...)
// call.
virtual const std::string& GetSaveFrameHeaders() = 0;
};
} // namespace content
#endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.cc ('k') | content/test/test_navigation_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698