OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/host_zoom_level_context.h" |
| 6 |
| 7 #include "base/files/file_path.h" |
| 8 #include "content/browser/host_zoom_map_impl.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 HostZoomLevelContext::HostZoomLevelContext( |
| 13 scoped_ptr<ZoomLevelPrefsStore> zoom_level_prefs, |
| 14 const base::FilePath& file_path) |
| 15 : host_zoom_map_impl_(new HostZoomMapImpl()), |
| 16 zoom_level_prefs_(zoom_level_prefs.release()) { |
| 17 if (zoom_level_prefs_) |
| 18 zoom_level_prefs_->InitPrefsAndCopyToHostZoomMap(file_path, |
| 19 host_zoom_map_impl_.get()); |
| 20 } |
| 21 |
| 22 HostZoomLevelContext::~HostZoomLevelContext() {} |
| 23 |
| 24 } // namespace content |
OLD | NEW |