| 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_PLUGIN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_ | 6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 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" |
| 11 | 11 |
| 12 #if defined(ENABLE_PLUGIN_INSTALLATION) | 12 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 13 #include <map> | 13 #include <map> |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 class InfoBarDelegate; | 17 class InfoBarDelegate; |
| 18 class PluginFinder; | 18 class PluginFinder; |
| 19 class TabContentsWrapper; | 19 class TabContents; |
| 20 typedef TabContents TabContentsWrapper; |
| 20 | 21 |
| 21 #if defined(ENABLE_PLUGIN_INSTALLATION) | 22 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 22 class PluginInstaller; | 23 class PluginInstaller; |
| 23 class PluginPlaceholderHost; | 24 class PluginPlaceholderHost; |
| 24 #endif | 25 #endif |
| 25 | 26 |
| 26 class PluginObserver : public content::WebContentsObserver { | 27 class PluginObserver : public content::WebContentsObserver { |
| 27 public: | 28 public: |
| 28 explicit PluginObserver(TabContentsWrapper* tab_contents); | 29 explicit PluginObserver(TabContentsWrapper* tab_contents); |
| 29 virtual ~PluginObserver(); | 30 virtual ~PluginObserver(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 66 |
| 66 #if defined(ENABLE_PLUGIN_INSTALLATION) | 67 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 67 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 68 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
| 68 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 69 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
| 69 #endif | 70 #endif |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_ | 75 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| OLD | NEW |