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

Side by Side Diff: content/public/renderer/render_frame_observer.h

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change null enum name Created 4 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "third_party/WebKit/public/platform/WebLoadingData.h"
16 #include "third_party/WebKit/public/platform/WebVector.h" 17 #include "third_party/WebKit/public/platform/WebVector.h"
17 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" 18 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h"
18 #include "v8/include/v8.h" 19 #include "v8/include/v8.h"
19 20
20 namespace blink { 21 namespace blink {
21 class WebFormElement; 22 class WebFormElement;
22 class WebFrame; 23 class WebFrame;
23 class WebNode; 24 class WebNode;
24 class WebString; 25 class WebString;
25 struct WebURLError; 26 struct WebURLError;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // state and you won't accidentally force new layouts. 106 // state and you won't accidentally force new layouts.
106 // The interestingness of layouts is explained in WebMeaningfulLayout.h. 107 // The interestingness of layouts is explained in WebMeaningfulLayout.h.
107 virtual void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) {} 108 virtual void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) {}
108 109
109 // Called when a compositor frame has committed. 110 // Called when a compositor frame has committed.
110 virtual void DidCommitCompositorFrame() {} 111 virtual void DidCommitCompositorFrame() {}
111 112
112 // Notifications when |PerformanceTiming| data becomes available 113 // Notifications when |PerformanceTiming| data becomes available
113 virtual void DidChangePerformanceTiming() {} 114 virtual void DidChangePerformanceTiming() {}
114 115
116 // Notification when renderer uses an particular code path during a page
117 // load. This is used for metrics collection.
Charlie Harrison 2016/04/05 22:26:06 "when the renderer"
Charlie Harrison 2016/04/06 14:24:51 Done.
118 virtual void DidObserveLoadingBehavior(blink::WebLoadingData data) {}
kinuko 2016/04/06 05:54:14 |data| sounds like a payload, let's consistently u
Charlie Harrison 2016/04/06 14:24:51 Done.
119
115 // Called when the focused node has changed to |node|. 120 // Called when the focused node has changed to |node|.
116 virtual void FocusedNodeChanged(const blink::WebNode& node) {} 121 virtual void FocusedNodeChanged(const blink::WebNode& node) {}
117 122
118 // IPC::Listener implementation. 123 // IPC::Listener implementation.
119 bool OnMessageReceived(const IPC::Message& message) override; 124 bool OnMessageReceived(const IPC::Message& message) override;
120 125
121 // IPC::Sender implementation. 126 // IPC::Sender implementation.
122 bool Send(IPC::Message* message) override; 127 bool Send(IPC::Message* message) override;
123 128
124 RenderFrame* render_frame() const; 129 RenderFrame* render_frame() const;
(...skipping 13 matching lines...) Expand all
138 RenderFrame* render_frame_; 143 RenderFrame* render_frame_;
139 // The routing ID of the associated RenderFrame. 144 // The routing ID of the associated RenderFrame.
140 int routing_id_; 145 int routing_id_;
141 146
142 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 147 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
143 }; 148 };
144 149
145 } // namespace content 150 } // namespace content
146 151
147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 152 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | third_party/WebKit/Source/core/loader/FrameLoaderClient.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698