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

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

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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"
(...skipping 16 matching lines...) Expand all
27 namespace content { 27 namespace content {
28 class WebContents; 28 class WebContents;
29 } 29 }
30 30
31 class PluginObserver : public content::WebContentsObserver, 31 class PluginObserver : public content::WebContentsObserver,
32 public content::WebContentsUserData<PluginObserver> { 32 public content::WebContentsUserData<PluginObserver> {
33 public: 33 public:
34 virtual ~PluginObserver(); 34 virtual ~PluginObserver();
35 35
36 // content::WebContentsObserver implementation. 36 // content::WebContentsObserver implementation.
37 virtual void RenderViewCreated( 37 virtual void RenderFrameCreated(
38 content::RenderViewHost* render_view_host) OVERRIDE; 38 content::RenderFrameHost* render_frame_host) OVERRIDE;
39 virtual void PluginCrashed(const base::FilePath& plugin_path, 39 virtual void PluginCrashed(const base::FilePath& plugin_path,
40 base::ProcessId plugin_pid) OVERRIDE; 40 base::ProcessId plugin_pid) OVERRIDE;
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
42 42
43 private: 43 private:
44 explicit PluginObserver(content::WebContents* web_contents); 44 explicit PluginObserver(content::WebContents* web_contents);
45 friend class content::WebContentsUserData<PluginObserver>; 45 friend class content::WebContentsUserData<PluginObserver>;
46 46
47 class PluginPlaceholderHost; 47 class PluginPlaceholderHost;
48 48
(...skipping 20 matching lines...) Expand all
69 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 69 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
70 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 70 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
71 #endif 71 #endif
72 72
73 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 73 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 75 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
76 }; 76 };
77 77
78 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 78 #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