| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "components/plugins/renderer/plugin_placeholder.h" | 10 #include "components/plugins/renderer/plugin_placeholder.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 content::PluginInstanceThrottler* premade_throttler_; | 114 content::PluginInstanceThrottler* premade_throttler_; |
| 115 | 115 |
| 116 bool allow_loading_; | 116 bool allow_loading_; |
| 117 | 117 |
| 118 bool finished_loading_; | 118 bool finished_loading_; |
| 119 std::string identifier_; | 119 std::string identifier_; |
| 120 | 120 |
| 121 // Used to prevent re-entrancy during the size recheck for throttled plugins. | 121 // Used to prevent re-entrancy during the size recheck for throttled plugins. |
| 122 bool in_size_recheck_; | 122 bool in_size_recheck_; |
| 123 gfx::Rect unobscured_rect_; | 123 gfx::Rect unobscured_rect_; |
| 124 base::OneShotTimer<LoadablePluginPlaceholder> size_update_timer_; | 124 base::OneShotTimer size_update_timer_; |
| 125 | 125 |
| 126 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; | 126 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); | 128 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace plugins | 131 } // namespace plugins |
| 132 | 132 |
| 133 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 133 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |