Home | History | Annotate | Download | only in prerender
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_
      6 #define CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_
      7 
      8 #include "base/compiler_specific.h"
      9 #include "content/public/renderer/render_view_observer.h"
     10 #include "third_party/WebKit/public/web/WebPrerendererClient.h"
     11 
     12 namespace prerender {
     13 
     14 class PrerendererClient : public content::RenderViewObserver,
     15                           public blink::WebPrerendererClient {
     16  public:
     17   explicit PrerendererClient(content::RenderView* render_view);
     18 
     19  private:
     20   virtual ~PrerendererClient();
     21 
     22   // Implements blink::WebPrerendererClient
     23   virtual void willAddPrerender(blink::WebPrerender* prerender) OVERRIDE;
     24 };
     25 
     26 }  // namespace prerender
     27 
     28 #endif  // CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_
     29 
     30