| Index: content/browser/host_zoom_level_context.cc
|
| diff --git a/content/browser/host_zoom_level_context.cc b/content/browser/host_zoom_level_context.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5430dde8c4a17ba61b59b818f0f32b143a654031
|
| --- /dev/null
|
| +++ b/content/browser/host_zoom_level_context.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/browser/host_zoom_level_context.h"
|
| +
|
| +#include "content/browser/host_zoom_map_impl.h"
|
| +
|
| +namespace content {
|
| +
|
| +HostZoomLevelContext::HostZoomLevelContext(ZoomLevelPrefsDelegate* delegate,
|
| + const base::FilePath& file_path,
|
| + double default_zoom_level)
|
| + : host_zoom_map_impl_(new HostZoomMapImpl(default_zoom_level)),
|
| + delegate_(delegate) {
|
| + if (delegate_)
|
| + delegate_->InitZoomLevels(file_path, host_zoom_map_impl_.get());
|
| +}
|
| +
|
| +HostZoomLevelContext::~HostZoomLevelContext() {
|
| + // This needs to be released before the destructor for the HostZoomMapImpl
|
| + // is called.
|
| + delegate_ = NULL;
|
| +}
|
| +
|
| +} // namespace content
|
|
|