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

Side by Side Diff: blimp/engine/mojo/blob_channel_mojo_impl.h

Issue 1859753002: Blimp: create Mojo component for renderer/browser communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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 BLIMP_ENGINE_MOJO_BLOB_CHANNEL_MOJO_IMPL_H_
6 #define BLIMP_ENGINE_MOJO_BLOB_CHANNEL_MOJO_IMPL_H_
7
8 #include "blimp/engine/mojo/blob_channel.mojom.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10
11 namespace blimp {
12 namespace engine {
13
14 class BlobChannelMojoImpl : public BlobChannelMojo {
nyquist 2016/04/05 22:13:19 Could you make it clear from the documentation whe
Kevin M 2016/04/06 00:01:44 Done.
15 public:
16 // Creates a BlobChannel bound to the connection specified by |request|.
17 explicit BlobChannelMojoImpl(mojo::InterfaceRequest<BlobChannelMojo> request);
18 ~BlobChannelMojoImpl() override;
19
20 // Factory method called by Mojo.
21 static void Create(mojo::InterfaceRequest<BlobChannelMojo> request);
22
23 private:
24 // BlobChannel implementation.
25 void Put(const mojo::String& id, mojo::Array<uint8_t> data) override;
26 void Push(const mojo::String& id) override;
27
28 // Binds |this| and its object lifetime to a Mojo connection.
29 mojo::StrongBinding<BlobChannelMojo> binding_;
30
31 DISALLOW_COPY_AND_ASSIGN(BlobChannelMojoImpl);
32 };
33
34 } // namespace engine
35 } // namespace blimp
36
37 #endif // BLIMP_ENGINE_MOJO_BLOB_CHANNEL_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698