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 EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
10 #include "content/public/renderer/render_view_observer.h"
12 namespace extensions
{
15 // RenderView-level plumbing for extension features.
16 class ExtensionHelper
: public content::RenderViewObserver
{
18 ExtensionHelper(content::RenderView
* render_view
, Dispatcher
* dispatcher
);
19 ~ExtensionHelper() override
;
22 // RenderViewObserver implementation.
23 bool OnMessageReceived(const IPC::Message
& message
) override
;
24 void DraggableRegionsChanged(blink::WebFrame
* frame
) override
;
26 void OnAppWindowClosed();
27 void OnSetFrameName(const std::string
& name
);
29 Dispatcher
* dispatcher_
;
31 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper
);
34 } // namespace extensions
36 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_