content_view_layer_renderer.h revision f2477e01787aa58f445919b809d89e252beef54f
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 CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H
6#define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H
7
8// This interface is used by consumers of the ContentViewRenderView to
9// attach/detach layers.
10
11namespace blink {
12class WebLayer;
13}
14
15namespace content {
16
17class ContentViewLayerRenderer {
18 public:
19  virtual void AttachLayer(blink::WebLayer* layer) = 0;
20  virtual void DetachLayer(blink::WebLayer* layer) = 0;
21
22 protected:
23  virtual ~ContentViewLayerRenderer() {}
24};
25
26}  // namespace content
27
28#endif  // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_LAYER_RENDERER_H
29