OLD | NEW |
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/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
11 #include "content/public/browser/web_contents_user_data.h" | 12 #include "content/public/browser/web_contents_user_data.h" |
12 | 13 |
13 #if defined(ENABLE_PLUGIN_INSTALLATION) | 14 #if defined(ENABLE_PLUGIN_INSTALLATION) |
14 #include <map> | 15 #include <map> |
15 #endif | 16 #endif |
16 | 17 |
17 class GURL; | 18 class GURL; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 66 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
66 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 67 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
67 #endif | 68 #endif |
68 | 69 |
69 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 70 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
72 }; | 73 }; |
73 | 74 |
74 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
OLD | NEW |