OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/web_contents/navigation_entry_impl.h" | 5 #include "content/browser/web_contents/navigation_entry_impl.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/public/common/content_constants.h" | 10 #include "content/public/common/content_constants.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 return true; | 307 return true; |
308 } | 308 } |
309 | 309 |
310 void NavigationEntryImpl::ClearExtraData(const std::string& key) { | 310 void NavigationEntryImpl::ClearExtraData(const std::string& key) { |
311 extra_data_.erase(key); | 311 extra_data_.erase(key); |
312 } | 312 } |
313 | 313 |
314 void NavigationEntryImpl::SetScreenshotPNGData( | 314 void NavigationEntryImpl::SetScreenshotPNGData( |
315 scoped_refptr<base::RefCountedBytes> png_data) { | 315 scoped_refptr<base::RefCountedBytes> png_data) { |
316 screenshot_ = png_data; | 316 screenshot_ = png_data; |
317 if (screenshot_) | 317 if (screenshot_.get()) |
318 UMA_HISTOGRAM_MEMORY_KB("Overscroll.ScreenshotSize", screenshot_->size()); | 318 UMA_HISTOGRAM_MEMORY_KB("Overscroll.ScreenshotSize", screenshot_->size()); |
319 } | 319 } |
320 | 320 |
321 } // namespace content | 321 } // namespace content |
OLD | NEW |