Chromium Code Reviews| Index: content/browser/frame_service_impl.h |
| diff --git a/content/browser/frame_service_impl.h b/content/browser/frame_service_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..be072a68db54cfc752e2d480984afe3d57524c9b |
| --- /dev/null |
| +++ b/content/browser/frame_service_impl.h |
| @@ -0,0 +1,41 @@ |
| +// 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_FRAME_SERVICE_IMPL_H_ |
| +#define CONTENT_BROWSER_FRAME_SERVICE_IMPL_H_ |
| + |
| +#include "content/common/frame_service.mojom.h" |
| +#include "mojo/public/cpp/bindings/interface_request.h" |
| +#include "mojo/public/cpp/bindings/strong_binding.h" |
| + |
| +namespace content { |
| + |
| +class BrowserContext; |
| + |
| +class FrameServiceImpl : public mojom::FrameService { |
|
Ben Goodger (Google)
2016/05/17 14:44:51
can you have RenderFrameHostImpl just implement th
scottmg
2016/05/17 17:36:16
Done.
|
| + public: |
| + FrameServiceImpl(int render_process_id, |
| + int routing_id, |
| + mojom::FrameServiceRequest request); |
| + ~FrameServiceImpl() override; |
| + |
| + static void Create(int render_process_id, |
| + int routing_id, |
| + mojom::FrameServiceRequest request); |
| + |
| + private: |
| + // mojom::FrameService: |
| + void GetHostZoomLevel(const GURL& url, |
| + const GetHostZoomLevelCallback& callback) override; |
| + |
| + mojo::StrongBinding<mojom::FrameService> binding_; |
| + int render_process_id_; |
| + int routing_id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(FrameServiceImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_FRAME_SERVICE_IMPL_H_ |