| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" | 5 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/public/common/content_constants.h" | 10 #include "content/public/common/content_constants.h" |
| 11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
| 12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 13 #include "content/renderer/render_frame_impl.h" | 13 #include "content/renderer/render_frame_impl.h" |
| 14 #include "ppapi/shared_impl/ppapi_constants.h" | 14 #include "ppapi/shared_impl/ppapi_constants.h" |
| 15 #include "third_party/WebKit/public/platform/WebRect.h" | 15 #include "third_party/WebKit/public/platform/WebRect.h" |
| 16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 16 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 // Release our reference to the underlying pixel data. | 219 // Release our reference to the underlying pixel data. |
| 220 last_received_frame_.reset(); | 220 last_received_frame_.reset(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 state_ = THROTTLER_STATE_PLUGIN_THROTTLED; | 223 state_ = THROTTLER_STATE_PLUGIN_THROTTLED; |
| 224 FOR_EACH_OBSERVER(Observer, observer_list_, OnThrottleStateChange()); | 224 FOR_EACH_OBSERVER(Observer, observer_list_, OnThrottleStateChange()); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace content | 227 } // namespace content |
| OLD | NEW |