OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
10 #include "components/plugins/renderer/plugin_placeholder.h" | 11 #include "components/plugins/renderer/plugin_placeholder.h" |
11 #include "content/public/common/webplugininfo.h" | 12 #include "content/public/common/webplugininfo.h" |
12 #include "content/public/renderer/plugin_instance_throttler.h" | 13 #include "content/public/renderer/plugin_instance_throttler.h" |
13 #include "content/public/renderer/render_thread.h" | 14 #include "content/public/renderer/render_thread.h" |
14 | 15 |
15 namespace plugins { | 16 namespace plugins { |
16 // Placeholders can be used if a plugin is missing or not available | 17 // Placeholders can be used if a plugin is missing or not available |
17 // (blocked or disabled). | 18 // (blocked or disabled). |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool heuristic_run_before_; | 129 bool heuristic_run_before_; |
129 | 130 |
130 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; | 131 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); | 133 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace plugins | 136 } // namespace plugins |
136 | 137 |
137 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 138 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
OLD | NEW |