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 #include <stddef.h> |
| 6 |
5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
6 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/renderer/plugins/power_saver_info.h" | 10 #include "chrome/renderer/plugins/power_saver_info.h" |
9 #include "content/public/common/content_constants.h" | 11 #include "content/public/common/content_constants.h" |
10 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
11 #include "content/public/common/webplugininfo.h" | 13 #include "content/public/common/webplugininfo.h" |
12 #include "content/public/renderer/render_frame.h" | 14 #include "content/public/renderer/render_frame.h" |
13 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 15 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 16 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 info.poster_attribute = GetPluginInstancePosterAttribute(params); | 117 info.poster_attribute = GetPluginInstancePosterAttribute(params); |
116 info.base_url = document_url; | 118 info.base_url = document_url; |
117 } | 119 } |
118 } | 120 } |
119 | 121 |
120 if (is_flash) | 122 if (is_flash) |
121 TrackPosterParamPresence(params, info.power_saver_enabled); | 123 TrackPosterParamPresence(params, info.power_saver_enabled); |
122 | 124 |
123 return info; | 125 return info; |
124 } | 126 } |
OLD | NEW |