Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / renderer / chrome_render_frame_observer.h
blob9981b3c8540755b560459fb019d435ceecc957d0
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
3 // found in the LICENSE file.
5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
8 #include "content/public/renderer/render_frame_observer.h"
10 namespace gfx {
11 class Size;
14 // This class holds the Chrome specific parts of RenderFrame, and has the same
15 // lifetime.
16 class ChromeRenderFrameObserver : public content::RenderFrameObserver {
17 public:
18 explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame);
19 virtual ~ChromeRenderFrameObserver();
21 private:
22 // RenderFrameObserver implementation.
23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
25 // IPC handlers
26 void OnSetIsPrerendering(bool is_prerendering);
27 void OnRequestThumbnailForContextNode(
28 int thumbnail_min_area_pixels,
29 const gfx::Size& thumbnail_max_size_pixels);
30 void OnPrintNodeUnderContextMenu();
32 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver);
35 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_