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

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

Issue 2056993003: Add Mojo IPC for seeding new Renderer with Browser's cached blob state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-master
Patch Set: use a better upstream branch for the patch Created 4 years, 6 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_ 5 #ifndef BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_
6 #define BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_ 6 #define BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_
7 7
8 #include "blimp/engine/mojo/blob_channel.mojom.h" 8 #include "blimp/engine/mojo/blob_channel.mojom.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 10
(...skipping 13 matching lines...) Expand all
24 static void Create(BlobChannelSender* blob_channel_sender, 24 static void Create(BlobChannelSender* blob_channel_sender,
25 mojo::InterfaceRequest<mojom::BlobChannel> request); 25 mojo::InterfaceRequest<mojom::BlobChannel> request);
26 26
27 private: 27 private:
28 // Creates a BlobChannel bound to the connection specified by |request|. 28 // Creates a BlobChannel bound to the connection specified by |request|.
29 // |blob_channel_sender| must outlive the Mojo connection. 29 // |blob_channel_sender| must outlive the Mojo connection.
30 BlobChannelService(BlobChannelSender* blob_channel_sender, 30 BlobChannelService(BlobChannelSender* blob_channel_sender,
31 mojom::BlobChannelRequest request); 31 mojom::BlobChannelRequest request);
32 32
33 // BlobChannel implementation. 33 // BlobChannel implementation.
34 void GetCacheState(const GetCacheStateCallback& callback) override;
34 void PutBlob(const mojo::String& id, const mojo::String& data) override; 35 void PutBlob(const mojo::String& id, const mojo::String& data) override;
35 void DeliverBlob(const mojo::String& id) override; 36 void DeliverBlob(const mojo::String& id) override;
36 37
37 // Binds |this| and its object lifetime to a Mojo connection. 38 // Binds |this| and its object lifetime to a Mojo connection.
38 mojo::StrongBinding<mojom::BlobChannel> binding_; 39 mojo::StrongBinding<mojom::BlobChannel> binding_;
39 40
40 // Sender object which will receive the blobs passed over the Mojo service. 41 // Sender object which will receive the blobs passed over the Mojo service.
41 BlobChannelSender* blob_channel_sender_; 42 BlobChannelSender* blob_channel_sender_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(BlobChannelService); 44 DISALLOW_COPY_AND_ASSIGN(BlobChannelService);
44 }; 45 };
45 46
46 } // namespace engine 47 } // namespace engine
47 } // namespace blimp 48 } // namespace blimp
48 49
49 #endif // BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_ 50 #endif // BLIMP_ENGINE_MOJO_BLOB_CHANNEL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698