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

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use IPC? Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 WindowOpenDisposition disposition, 233 WindowOpenDisposition disposition,
234 PageTransition transition, 234 PageTransition transition,
235 int64 source_frame_id) {} 235 int64 source_frame_id) {}
236 236
237 virtual void FrameDetached(RenderViewHost* render_view_host, 237 virtual void FrameDetached(RenderViewHost* render_view_host,
238 int64 frame_id) {} 238 int64 frame_id) {}
239 239
240 // This method is invoked when the renderer has completed its first paint 240 // This method is invoked when the renderer has completed its first paint
241 // after a non-empty layout. 241 // after a non-empty layout.
242 virtual void DidFirstVisuallyNonEmptyPaint(int32 page_id) {} 242 virtual void DidFirstVisuallyNonEmptyPaint(int32 page_id) {}
243 virtual void OnSourceFrameNumber(int source_frame_number, int tag) {}
243 244
244 // These two methods correspond to the points in time when the spinner of the 245 // These two methods correspond to the points in time when the spinner of the
245 // tab starts and stops spinning. 246 // tab starts and stops spinning.
246 virtual void DidStartLoading(RenderViewHost* render_view_host) {} 247 virtual void DidStartLoading(RenderViewHost* render_view_host) {}
247 virtual void DidStopLoading(RenderViewHost* render_view_host) {} 248 virtual void DidStopLoading(RenderViewHost* render_view_host) {}
248 249
249 // When WebContents::Stop() is called, the WebContents stops loading and then 250 // When WebContents::Stop() is called, the WebContents stops loading and then
250 // invokes this method. If there are ongoing navigations, their respective 251 // invokes this method. If there are ongoing navigations, their respective
251 // failure methods will also be invoked. 252 // failure methods will also be invoked.
252 virtual void NavigationStopped() {} 253 virtual void NavigationStopped() {}
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // Invoked when the beforeunload handler fires. The time is from the renderer. 326 // Invoked when the beforeunload handler fires. The time is from the renderer.
326 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} 327 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
327 328
328 // Invoked when a user cancels a before unload dialog. 329 // Invoked when a user cancels a before unload dialog.
329 virtual void BeforeUnloadDialogCancelled() {} 330 virtual void BeforeUnloadDialogCancelled() {}
330 331
331 // Invoked when an accessibility event is received from the renderer. 332 // Invoked when an accessibility event is received from the renderer.
332 virtual void AccessibilityEventReceived( 333 virtual void AccessibilityEventReceived(
333 const std::vector<AXEventNotificationDetails>& details) {} 334 const std::vector<AXEventNotificationDetails>& details) {}
334 335
336 virtual bool DispatchMessageWithSwapFrame(const IPC::Message& message) {}
mkosiba (inactive) 2014/05/06 22:30:33 this is where subclasses from different layers (th
337
335 // IPC::Listener implementation. 338 // IPC::Listener implementation.
336 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 339 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
337 340
338 // IPC::Sender implementation. 341 // IPC::Sender implementation.
339 virtual bool Send(IPC::Message* message) OVERRIDE; 342 virtual bool Send(IPC::Message* message) OVERRIDE;
340 int routing_id() const; 343 int routing_id() const;
341 344
342 protected: 345 protected:
343 // Use this constructor when the object is tied to a single WebContents for 346 // Use this constructor when the object is tied to a single WebContents for
344 // its entire lifetime. 347 // its entire lifetime.
(...skipping 19 matching lines...) Expand all
364 void WebContentsImplDestroyed(); 367 void WebContentsImplDestroyed();
365 368
366 WebContentsImpl* web_contents_; 369 WebContentsImpl* web_contents_;
367 370
368 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 371 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
369 }; 372 };
370 373
371 } // namespace content 374 } // namespace content
372 375
373 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 376 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698