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

Unified Diff: components/html_viewer/html_frame.h

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 4 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: components/html_viewer/html_frame.h
diff --git a/components/html_viewer/html_frame.h b/components/html_viewer/html_frame.h
index b354becb0cf6dee6c17de21d98b067e7590e58a7..e51083f144568e501486b4afa3a97730b7824513 100644
--- a/components/html_viewer/html_frame.h
+++ b/components/html_viewer/html_frame.h
@@ -13,6 +13,7 @@
#include "components/html_viewer/replicated_frame_state.h"
#include "components/view_manager/public/cpp/view_observer.h"
#include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
+#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/web/WebFrameClient.h"
#include "third_party/WebKit/public/web/WebRemoteFrameClient.h"
@@ -25,6 +26,7 @@ class WebFrame;
}
namespace mojo {
+class ApplicationImpl;
class Rect;
class ScopedViewPtr;
class View;
@@ -238,10 +240,12 @@ class HTMLFrame : public blink::WebFrameClient,
const blink::WebString& source_name,
unsigned source_line,
const blink::WebString& stack_trace);
+ virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
virtual void didFinishLoad(blink::WebLocalFrame* frame);
virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
const blink::WebHistoryItem& history_item,
blink::WebHistoryCommitType commit_type);
+ virtual void didFirstVisuallyNonEmptyLayout(blink::WebLocalFrame* frame);
virtual blink::WebGeolocationClient* geolocationClient();
virtual blink::WebEncryptedMediaClient* encryptedMediaClient();
virtual void didStartLoading(bool to_different_document);
@@ -305,6 +309,10 @@ class HTMLFrame : public blink::WebFrameClient,
blink::WebTextInputInfo text_input_info_;
+ // This object is only valid in the context of performance tests.
+ tracing::StartupPerformanceDataCollectorPtr
+ startup_performance_data_collector_;
+
base::WeakPtrFactory<HTMLFrame> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(HTMLFrame);

Powered by Google App Engine
This is Rietveld 408576698