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

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: japhet@ review 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
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/WebLoadingBehaviorFlag.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 the renderer uses a particular code path during a page
117 // load. This is used for metrics collection.
118 virtual void DidObserveLoadingBehavior(
119 blink::WebLoadingBehaviorFlag behavior) {}
120
115 // Called when the focused node has changed to |node|. 121 // Called when the focused node has changed to |node|.
116 virtual void FocusedNodeChanged(const blink::WebNode& node) {} 122 virtual void FocusedNodeChanged(const blink::WebNode& node) {}
117 123
118 // IPC::Listener implementation. 124 // IPC::Listener implementation.
119 bool OnMessageReceived(const IPC::Message& message) override; 125 bool OnMessageReceived(const IPC::Message& message) override;
120 126
121 // IPC::Sender implementation. 127 // IPC::Sender implementation.
122 bool Send(IPC::Message* message) override; 128 bool Send(IPC::Message* message) override;
123 129
124 RenderFrame* render_frame() const; 130 RenderFrame* render_frame() const;
(...skipping 13 matching lines...) Expand all
138 RenderFrame* render_frame_; 144 RenderFrame* render_frame_;
139 // The routing ID of the associated RenderFrame. 145 // The routing ID of the associated RenderFrame.
140 int routing_id_; 146 int routing_id_;
141 147
142 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 148 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
143 }; 149 };
144 150
145 } // namespace content 151 } // namespace content
146 152
147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 153 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698