Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/plugins/plugin_observer.h

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 #include "content/public/browser/web_contents_user_data.h" 11 #include "content/public/browser/web_contents_user_data.h"
12 12
13 #if defined(ENABLE_PLUGIN_INSTALLATION) 13 #if defined(ENABLE_PLUGIN_INSTALLATION)
14 #include <map> 14 #include <map>
15 #endif 15 #endif
16 16
17 class GURL; 17 class GURL;
18 class InfoBarDelegate;
19 class PluginFinder; 18 class PluginFinder;
20 class PluginMetadata; 19 class PluginMetadata;
21 20
22 #if defined(ENABLE_PLUGIN_INSTALLATION) 21 #if defined(ENABLE_PLUGIN_INSTALLATION)
23 class PluginInstaller; 22 class PluginInstaller;
24 class PluginPlaceholderHost; 23 class PluginPlaceholderHost;
25 #endif 24 #endif
26 25
27 namespace content { 26 namespace content {
28 class WebContents; 27 class WebContents;
29 } 28 }
30 29
30 namespace infobars {
31 class InfoBarDelegate;
32 }
33
31 class PluginObserver : public content::WebContentsObserver, 34 class PluginObserver : public content::WebContentsObserver,
32 public content::WebContentsUserData<PluginObserver> { 35 public content::WebContentsUserData<PluginObserver> {
33 public: 36 public:
34 virtual ~PluginObserver(); 37 virtual ~PluginObserver();
35 38
36 // content::WebContentsObserver implementation. 39 // content::WebContentsObserver implementation.
37 virtual void RenderFrameCreated( 40 virtual void RenderFrameCreated(
38 content::RenderFrameHost* render_frame_host) OVERRIDE; 41 content::RenderFrameHost* render_frame_host) OVERRIDE;
39 virtual void PluginCrashed(const base::FilePath& plugin_path, 42 virtual void PluginCrashed(const base::FilePath& plugin_path,
40 base::ProcessId plugin_pid) OVERRIDE; 43 base::ProcessId plugin_pid) OVERRIDE;
(...skipping 28 matching lines...) Expand all
69 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 72 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
70 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 73 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
71 #endif 74 #endif
72 75
73 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 76 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 78 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
76 }; 79 };
77 80
78 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 81 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.cc ('k') | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698