Add the ability to code generated prepopulated static nested structs
[chromium-blink-merge.git] / extensions / renderer / extension_helper.h
blob0892fa892c479634e62b6b2ff8099be6b4a67446
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_
8 #include <string>
10 #include "content/public/renderer/render_view_observer.h"
12 namespace extensions {
13 class Dispatcher;
15 // RenderView-level plumbing for extension features.
16 class ExtensionHelper : public content::RenderViewObserver {
17 public:
18 ExtensionHelper(content::RenderView* render_view, Dispatcher* dispatcher);
19 ~ExtensionHelper() override;
21 private:
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_