Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / renderer / prerender / prerenderer_client.h
blob07a92c50aa007aa2e795e13621169c81a323c968
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.
5 #ifndef CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_
6 #define CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "third_party/WebKit/public/web/WebPrerendererClient.h"
12 namespace prerender {
14 class PrerendererClient : public content::RenderViewObserver,
15 public blink::WebPrerendererClient {
16 public:
17 explicit PrerendererClient(content::RenderView* render_view);
19 private:
20 virtual ~PrerendererClient();
22 // Implements blink::WebPrerendererClient
23 virtual void willAddPrerender(blink::WebPrerender* prerender) OVERRIDE;
26 } // namespace prerender
28 #endif // CHROME_RENDERER_PRERENDER_PRERENDERER_CLIENT_H_