OLD | NEW |
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/WebExperimentData.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 Loading... |
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 experimental feature. |
| 117 virtual void DidUseExperiment(blink::WebExperimentData data) {} |
| 118 |
115 // Called when the focused node has changed to |node|. | 119 // Called when the focused node has changed to |node|. |
116 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 120 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
117 | 121 |
118 // IPC::Listener implementation. | 122 // IPC::Listener implementation. |
119 bool OnMessageReceived(const IPC::Message& message) override; | 123 bool OnMessageReceived(const IPC::Message& message) override; |
120 | 124 |
121 // IPC::Sender implementation. | 125 // IPC::Sender implementation. |
122 bool Send(IPC::Message* message) override; | 126 bool Send(IPC::Message* message) override; |
123 | 127 |
124 RenderFrame* render_frame() const; | 128 RenderFrame* render_frame() const; |
(...skipping 13 matching lines...) Expand all Loading... |
138 RenderFrame* render_frame_; | 142 RenderFrame* render_frame_; |
139 // The routing ID of the associated RenderFrame. | 143 // The routing ID of the associated RenderFrame. |
140 int routing_id_; | 144 int routing_id_; |
141 | 145 |
142 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 146 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
143 }; | 147 }; |
144 | 148 |
145 } // namespace content | 149 } // namespace content |
146 | 150 |
147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 151 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |