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

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

Issue 1063413002: Receive all messages in PluginObserver from the RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: update base Created 5 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
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 public content::WebContentsUserData<PluginObserver> { 35 public content::WebContentsUserData<PluginObserver> {
36 public: 36 public:
37 ~PluginObserver() override; 37 ~PluginObserver() override;
38 38
39 // content::WebContentsObserver implementation. 39 // content::WebContentsObserver implementation.
40 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; 40 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
41 void PluginCrashed(const base::FilePath& plugin_path, 41 void PluginCrashed(const base::FilePath& plugin_path,
42 base::ProcessId plugin_pid) override; 42 base::ProcessId plugin_pid) override;
43 bool OnMessageReceived(const IPC::Message& message, 43 bool OnMessageReceived(const IPC::Message& message,
44 content::RenderFrameHost* render_frame_host) override; 44 content::RenderFrameHost* render_frame_host) override;
45 bool OnMessageReceived(const IPC::Message& message) override;
46 45
47 private: 46 private:
48 explicit PluginObserver(content::WebContents* web_contents); 47 explicit PluginObserver(content::WebContents* web_contents);
49 friend class content::WebContentsUserData<PluginObserver>; 48 friend class content::WebContentsUserData<PluginObserver>;
50 49
51 class PluginPlaceholderHost; 50 class PluginPlaceholderHost;
52 51
53 // Message handlers: 52 // Message handlers:
54 void OnBlockedUnauthorizedPlugin(const base::string16& name, 53 void OnBlockedUnauthorizedPlugin(const base::string16& name,
55 const std::string& identifier); 54 const std::string& identifier);
(...skipping 10 matching lines...) Expand all
66 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 65 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
67 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 66 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
68 #endif 67 #endif
69 68
70 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 69 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 71 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
73 }; 72 };
74 73
75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 74 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698