• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
7 
8 #include "content/public/renderer/render_frame_observer.h"
9 
10 // This class holds the Chrome specific parts of RenderFrame, and has the same
11 // lifetime.
12 class ChromeRenderFrameObserver : public content::RenderFrameObserver {
13  public:
14   explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame);
15   virtual ~ChromeRenderFrameObserver();
16 
17  private:
18   // RenderFrameObserver implementation.
19   virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
20 
21   // IPC handlers
22   void OnSetIsPrerendering(bool is_prerendering);
23 
24   DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver);
25 };
26 
27 #endif  // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
28