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

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

Issue 1025303007: Remove PluginInstallerInfoBarDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 45 bool OnMessageReceived(const IPC::Message& message) override;
46 46
47 private: 47 private:
48 explicit PluginObserver(content::WebContents* web_contents); 48 explicit PluginObserver(content::WebContents* web_contents);
49 friend class content::WebContentsUserData<PluginObserver>; 49 friend class content::WebContentsUserData<PluginObserver>;
50 50
51 class PluginPlaceholderHost; 51 class PluginPlaceholderHost;
52 52
53 #if defined(ENABLE_PLUGIN_INSTALLATION)
54 void InstallMissingPlugin(PluginInstaller* installer,
55 const PluginMetadata* plugin_metadata);
56 #endif
57
58 // Message handlers: 53 // Message handlers:
59 void OnBlockedUnauthorizedPlugin(const base::string16& name, 54 void OnBlockedUnauthorizedPlugin(const base::string16& name,
60 const std::string& identifier); 55 const std::string& identifier);
61 void OnBlockedOutdatedPlugin(int placeholder_id, 56 void OnBlockedOutdatedPlugin(int placeholder_id,
62 const std::string& identifier); 57 const std::string& identifier);
63 #if defined(ENABLE_PLUGIN_INSTALLATION) 58 #if defined(ENABLE_PLUGIN_INSTALLATION)
64 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type);
65
66 void OnRemovePluginPlaceholderHost(int placeholder_id); 59 void OnRemovePluginPlaceholderHost(int placeholder_id);
67 #endif 60 #endif
68 void OnOpenAboutPlugins(); 61 void OnOpenAboutPlugins();
69 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); 62 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path);
70 void OnNPAPINotSupported(const std::string& identifier); 63 void OnNPAPINotSupported(const std::string& identifier);
71 64
72 #if defined(ENABLE_PLUGIN_INSTALLATION) 65 #if defined(ENABLE_PLUGIN_INSTALLATION)
73 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 66 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
74 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 67 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
75 #endif 68 #endif
76 69
77 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 70 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
78 71
79 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 72 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
80 }; 73 };
81 74
82 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 75 #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