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

Side by Side Diff: components/plugins/renderer/loadable_plugin_placeholder.h

Issue 1764043002: Update a webview plugin's WebView's lifecycle immediately after resizing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 content::PluginInstanceThrottler* premade_throttler_; 116 content::PluginInstanceThrottler* premade_throttler_;
117 117
118 bool allow_loading_; 118 bool allow_loading_;
119 119
120 bool finished_loading_; 120 bool finished_loading_;
121 std::string identifier_; 121 std::string identifier_;
122 122
123 // Used to prevent re-entrancy during the size recheck for throttled plugins. 123 // Used to prevent re-entrancy during the size recheck for throttled plugins.
124 bool in_size_recheck_; 124 bool in_size_recheck_;
125 gfx::Rect unobscured_rect_; 125 gfx::Rect unobscured_rect_;
126 base::OneShotTimer size_update_timer_;
tommycli 2016/03/04 18:32:09 LoadablePluginPlaceholder should have this patch r
127 126
128 // True if the power saver heuristic has already been run on this content. 127 // True if the power saver heuristic has already been run on this content.
129 bool heuristic_run_before_; 128 bool heuristic_run_before_;
130 129
131 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; 130 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_;
132 131
133 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); 132 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder);
134 }; 133 };
135 134
136 } // namespace plugins 135 } // namespace plugins
137 136
138 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ 137 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698