Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: content/browser/host_zoom_level_impl.h

Issue 1964273002: Add FrameHost mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android-2 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/host_zoom_level_impl.h
diff --git a/content/browser/host_zoom_level_impl.h b/content/browser/host_zoom_level_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f474bac980d705023add215e912ead3004f270e7
--- /dev/null
+++ b/content/browser/host_zoom_level_impl.h
@@ -0,0 +1,42 @@
+// Copyright 2016 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.
+
+#ifndef CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_
+#define CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_
+
+#include "content/common/host_zoom_level.mojom.h"
+#include "mojo/public/cpp/bindings/binding.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+
+namespace content {
+
+class BrowserContext;
+
+class HostZoomLevelImpl : public mojom::HostZoomLevel {
+ public:
+ HostZoomLevelImpl(BrowserContext* context,
+ int render_process_id,
jam 2016/05/16 18:28:32 these two parameters are redundant, since one can
scottmg 2016/05/16 22:54:56 Done.
+ mojom::HostZoomLevelRequest request);
+ ~HostZoomLevelImpl() override;
+
+ static void Create(BrowserContext* context,
+ int render_process_id,
+ mojom::HostZoomLevelRequest request);
+
+ private:
+ // mojom::HostZoomLevel:
+ void GetZoomLevel(const GURL& url,
+ int32_t render_view_id,
+ const GetZoomLevelCallback& callback) override;
+
+ mojo::Binding<mojom::HostZoomLevel> binding_;
+ BrowserContext* context_;
+ int render_process_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(HostZoomLevelImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_
« no previous file with comments | « no previous file | content/browser/host_zoom_level_impl.cc » ('j') | content/browser/loader/async_resource_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698