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

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

Issue 10917189: Remove PluginFinder async interface (Closed) Base URL: http://git.chromium.org/chromium/src.git@separate_finder_thread_safety
Patch Set: .. Created 8 years, 3 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/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 10
(...skipping 29 matching lines...) Expand all
40 private: 40 private:
41 class PluginPlaceholderHost; 41 class PluginPlaceholderHost;
42 42
43 void OnBlockedUnauthorizedPlugin(const string16& name, 43 void OnBlockedUnauthorizedPlugin(const string16& name,
44 const std::string& identifier); 44 const std::string& identifier);
45 void OnBlockedOutdatedPlugin(int placeholder_id, 45 void OnBlockedOutdatedPlugin(int placeholder_id,
46 const std::string& identifier); 46 const std::string& identifier);
47 #if defined(ENABLE_PLUGIN_INSTALLATION) 47 #if defined(ENABLE_PLUGIN_INSTALLATION)
48 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); 48 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type);
49 49
50 void FindMissingPlugin(int placeholder_id,
51 const std::string& mime_type,
52 PluginFinder* plugin_finder);
53 void FindPluginToUpdate(int placeholder_id,
54 const std::string& identifier,
55 PluginFinder* plugin_finder);
56 void OnRemovePluginPlaceholderHost(int placeholder_id); 50 void OnRemovePluginPlaceholderHost(int placeholder_id);
57 #endif 51 #endif
58 void OnOpenAboutPlugins(); 52 void OnOpenAboutPlugins();
59 void OnCouldNotLoadPlugin(const FilePath& plugin_path); 53 void OnCouldNotLoadPlugin(const FilePath& plugin_path);
60 54
61 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; 55 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
62 56
63 TabContents* tab_contents_; 57 TabContents* tab_contents_;
64 58
65 #if defined(ENABLE_PLUGIN_INSTALLATION) 59 #if defined(ENABLE_PLUGIN_INSTALLATION)
66 // Stores all PluginPlaceholderHosts, keyed by their routing ID. 60 // Stores all PluginPlaceholderHosts, keyed by their routing ID.
67 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; 61 std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
68 #endif 62 #endif
69 63
70 DISALLOW_COPY_AND_ASSIGN(PluginObserver); 64 DISALLOW_COPY_AND_ASSIGN(PluginObserver);
71 }; 65 };
72 66
73 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ 67 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698