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

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

Issue 629203002: Replace OVERRIDE and FINAL with override and final in content/public/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 "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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void DetailedConsoleMessageAdded(const base::string16& message, 68 virtual void DetailedConsoleMessageAdded(const base::string16& message,
69 const base::string16& source, 69 const base::string16& source,
70 const base::string16& stack_trace, 70 const base::string16& stack_trace,
71 int32 line_number, 71 int32 line_number,
72 int32 severity_level) {} 72 int32 severity_level) {}
73 73
74 // Called when a compositor frame has committed. 74 // Called when a compositor frame has committed.
75 virtual void DidCommitCompositorFrame() {} 75 virtual void DidCommitCompositorFrame() {}
76 76
77 // IPC::Listener implementation. 77 // IPC::Listener implementation.
78 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 78 virtual bool OnMessageReceived(const IPC::Message& message) override;
79 79
80 // IPC::Sender implementation. 80 // IPC::Sender implementation.
81 virtual bool Send(IPC::Message* message) OVERRIDE; 81 virtual bool Send(IPC::Message* message) override;
82 82
83 RenderFrame* render_frame() const; 83 RenderFrame* render_frame() const;
84 int routing_id() const { return routing_id_; } 84 int routing_id() const { return routing_id_; }
85 85
86 protected: 86 protected:
87 explicit RenderFrameObserver(RenderFrame* render_frame); 87 explicit RenderFrameObserver(RenderFrame* render_frame);
88 virtual ~RenderFrameObserver(); 88 virtual ~RenderFrameObserver();
89 89
90 private: 90 private:
91 friend class RenderFrameImpl; 91 friend class RenderFrameImpl;
92 92
93 // This is called by the RenderFrame when it's going away so that this object 93 // This is called by the RenderFrame when it's going away so that this object
94 // can null out its pointer. 94 // can null out its pointer.
95 void RenderFrameGone(); 95 void RenderFrameGone();
96 96
97 RenderFrame* render_frame_; 97 RenderFrame* render_frame_;
98 // The routing ID of the associated RenderFrame. 98 // The routing ID of the associated RenderFrame.
99 int routing_id_; 99 int routing_id_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 101 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
102 }; 102 };
103 103
104 } // namespace content 104 } // namespace content
105 105
106 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 106 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/renderer/platform_event_observer.h ('k') | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698