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

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

Issue 11066043: Block NPAPI plug-ins in Metro mode instead of not loading them at all. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 1 month 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const std::string& identifier); 54 const std::string& identifier);
55 void OnBlockedOutdatedPlugin(int placeholder_id, 55 void OnBlockedOutdatedPlugin(int placeholder_id,
56 const std::string& identifier); 56 const std::string& identifier);
57 #if defined(ENABLE_PLUGIN_INSTALLATION) 57 #if defined(ENABLE_PLUGIN_INSTALLATION)
58 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); 58 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type);
59 59
60 void OnRemovePluginPlaceholderHost(int placeholder_id); 60 void OnRemovePluginPlaceholderHost(int placeholder_id);
61 #endif 61 #endif
62 void OnOpenAboutPlugins(); 62 void OnOpenAboutPlugins();
63 void OnCouldNotLoadPlugin(const FilePath& plugin_path); 63 void OnCouldNotLoadPlugin(const FilePath& plugin_path);
64 void OnNPAPINotSupported(const std::string& identifier);
64 65
65 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 66 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
66 67
67 #if defined(ENABLE_PLUGIN_INSTALLATION) 68 #if defined(ENABLE_PLUGIN_INSTALLATION)
68 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 69 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
69 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 70 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
70 #endif 71 #endif
71 72
72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 73 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 76 #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