Don't preload rarely seen large images
[chromium-blink-merge.git] / components / nacl / renderer / nacl_helper.h
blobd76a84e5da01e77e2bebd1f9392f36c55baed8ec
1 // Copyright 2014 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 COMPONENTS_NACL_RENDERER_NACL_HELPER_H_
6 #define COMPONENTS_NACL_RENDERER_NACL_HELPER_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/renderer/render_frame_observer.h"
11 namespace nacl {
13 // This class listens for Pepper creation events from the RenderFrame. For the
14 // NaCl trusted plugin, it configures it as an external plugin host.
15 // TODO(dmichael): When the trusted plugin goes away, we need to figure out the
16 // right event to watch for.
17 class NaClHelper : public content::RenderFrameObserver {
18 public:
19 explicit NaClHelper(content::RenderFrame* render_frame);
20 ~NaClHelper() override;
22 // RenderFrameObserver.
23 void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
25 private:
26 DISALLOW_COPY_AND_ASSIGN(NaClHelper);
29 } // namespace nacl
31 #endif // COMPONENTS_NACL_RENDERER_NACL_HELPER_H_