Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / renderer / extensions / chrome_extension_helper.h
blobe26ccdadd6ccf82a187e85da7b9116ae43b4b1ce
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 CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSION_HELPER_H_
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSION_HELPER_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/render_view_observer.h"
11 #include "content/public/renderer/render_view_observer_tracker.h"
13 struct WebApplicationInfo;
15 namespace extensions {
17 // RenderView plumbing for Chrome-specific extension features.
18 // See also extensions/renderer/extension_helper.h.
19 class ChromeExtensionHelper
20 : public content::RenderViewObserver,
21 public content::RenderViewObserverTracker<ChromeExtensionHelper> {
22 public:
23 explicit ChromeExtensionHelper(content::RenderView* render_view);
24 virtual ~ChromeExtensionHelper();
26 private:
27 // RenderViewObserver implementation.
28 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 // IPC message handlers.
31 void OnGetApplicationInfo(int page_id);
33 // The app info that we are processing. This is used when installing an app
34 // via application definition. The in-progress web app is stored here while
35 // its manifest and icons are downloaded.
36 scoped_ptr<WebApplicationInfo> pending_app_info_;
38 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionHelper);
41 } // namespace extensions
43 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSION_HELPER_H_