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

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

Issue 1289053003: Modified RenderFrameObserver API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const base::string16& stack_trace, 95 const base::string16& stack_trace,
96 int32 line_number, 96 int32 line_number,
97 int32 severity_level) {} 97 int32 severity_level) {}
98 98
99 // Called when a compositor frame has committed. 99 // Called when a compositor frame has committed.
100 virtual void DidCommitCompositorFrame() {} 100 virtual void DidCommitCompositorFrame() {}
101 101
102 // Called when the focused node has changed to |node|. 102 // Called when the focused node has changed to |node|.
103 virtual void FocusedNodeChanged(const blink::WebNode& node) {} 103 virtual void FocusedNodeChanged(const blink::WebNode& node) {}
104 104
105 // Notifications when Performance data becomes available
Bryan McQuade 2015/08/14 12:01:41 for the comment, I'd reference the class name expl
106 virtual void OnPerformanceTimingChanged() {}
Bryan McQuade 2015/08/14 12:01:40 in keeping with the other naming, maybe call this
Bryan McQuade 2015/08/14 12:01:41 In addition to this change, I'd also include the p
107
105 // IPC::Listener implementation. 108 // IPC::Listener implementation.
106 bool OnMessageReceived(const IPC::Message& message) override; 109 bool OnMessageReceived(const IPC::Message& message) override;
107 110
108 // IPC::Sender implementation. 111 // IPC::Sender implementation.
109 bool Send(IPC::Message* message) override; 112 bool Send(IPC::Message* message) override;
110 113
111 RenderFrame* render_frame() const; 114 RenderFrame* render_frame() const;
112 int routing_id() const { return routing_id_; } 115 int routing_id() const { return routing_id_; }
113 116
114 protected: 117 protected:
(...skipping 10 matching lines...) Expand all
125 RenderFrame* render_frame_; 128 RenderFrame* render_frame_;
126 // The routing ID of the associated RenderFrame. 129 // The routing ID of the associated RenderFrame.
127 int routing_id_; 130 int routing_id_;
128 131
129 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
130 }; 133 };
131 134
132 } // namespace content 135 } // namespace content
133 136
134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698