OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 #ifndef CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_ | |
6 #define CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_ | |
7 | |
8 #include "content/common/host_zoom_level.mojom.h" | |
9 #include "mojo/public/cpp/bindings/binding.h" | |
10 #include "mojo/public/cpp/bindings/interface_request.h" | |
11 | |
12 namespace content { | |
13 | |
14 class BrowserContext; | |
15 | |
16 class HostZoomLevelImpl : public mojom::HostZoomLevel { | |
17 public: | |
18 HostZoomLevelImpl(BrowserContext* context, | |
19 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.
| |
20 mojom::HostZoomLevelRequest request); | |
21 ~HostZoomLevelImpl() override; | |
22 | |
23 static void Create(BrowserContext* context, | |
24 int render_process_id, | |
25 mojom::HostZoomLevelRequest request); | |
26 | |
27 private: | |
28 // mojom::HostZoomLevel: | |
29 void GetZoomLevel(const GURL& url, | |
30 int32_t render_view_id, | |
31 const GetZoomLevelCallback& callback) override; | |
32 | |
33 mojo::Binding<mojom::HostZoomLevel> binding_; | |
34 BrowserContext* context_; | |
35 int render_process_id_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(HostZoomLevelImpl); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_BROWSER_HOST_ZOOM_LEVEL_IMPL_H_ | |
OLD | NEW |