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 "content/browser/host_zoom_map_impl.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 HostZoomLevelContext::HostZoomLevelContext( |
| 12 scoped_ptr<ZoomLevelPrefsStore> prefs_store, |
| 13 const base::FilePath& file_path, |
| 14 double default_zoom_level) |
| 15 : host_zoom_map_impl_(new HostZoomMapImpl(default_zoom_level)), |
| 16 prefs_store_(prefs_store.release()) { |
| 17 if (prefs_store_) |
| 18 prefs_store_->InitHostZoomMap(file_path, host_zoom_map_impl_.get()); |
| 19 } |
| 20 |
| 21 HostZoomLevelContext::~HostZoomLevelContext() {} |
| 22 |
| 23 } // namespace content |
OLD | NEW |