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

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

Issue 138333006: Now that RenderFrame is 1:1 with WebFrame, add the associated getters and start cleaning up assumpt… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 15 matching lines...) Expand all
26 class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener, 26 class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
27 public IPC::Sender { 27 public IPC::Sender {
28 public: 28 public:
29 // By default, observers will be deleted when the RenderFrame goes away. If 29 // By default, observers will be deleted when the RenderFrame goes away. If
30 // they want to outlive it, they can override this function. 30 // they want to outlive it, they can override this function.
31 virtual void OnDestruct(); 31 virtual void OnDestruct();
32 32
33 // Called when a Pepper plugin is created. 33 // Called when a Pepper plugin is created.
34 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} 34 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {}
35 35
36 // Called when the WebFrame associated with the RenderFrame is created.
37 // When switches::kSitePerProcess is the default, there will be one
38 // RenderFrame per blink::WebFrame. If it's not set though, a RenderFrame can
39 // be used for more than one blink::WebFrame. In that case, this can be called
40 // more than once.
41 virtual void WebFrameCreated(blink::WebFrame* frame) {}
42
43 // These match the Blink API notifications 36 // These match the Blink API notifications
44 virtual void DidCommitProvisionalLoad(blink::WebFrame* frame, 37 virtual void DidCommitProvisionalLoad(blink::WebFrame* frame,
45 bool is_new_navigation) {} 38 bool is_new_navigation) {}
46 39
47 // IPC::Listener implementation. 40 // IPC::Listener implementation.
48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
49 42
50 // IPC::Sender implementation. 43 // IPC::Sender implementation.
51 virtual bool Send(IPC::Message* message) OVERRIDE; 44 virtual bool Send(IPC::Message* message) OVERRIDE;
52 45
(...skipping 14 matching lines...) Expand all
67 RenderFrame* render_frame_; 60 RenderFrame* render_frame_;
68 // The routing ID of the associated RenderFrame. 61 // The routing ID of the associated RenderFrame.
69 int routing_id_; 62 int routing_id_;
70 63
71 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 64 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
72 }; 65 };
73 66
74 } // namespace content 67 } // namespace content
75 68
76 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 69 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698