OLD | NEW |
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 #include "blimp/engine/renderer/blob_channel_sender_proxy.h" | 5 #include "blimp/engine/renderer/blob_channel_sender_proxy.h" |
6 | 6 |
7 #include <unordered_map> | 7 #include <unordered_map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "blimp/common/blob_cache/id_util.h" | 10 #include "blimp/common/blob_cache/id_util.h" |
11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
12 #include "services/shell/public/cpp/interface_provider.h" | 12 #include "services/service_manager/public/cpp/interface_provider.h" |
13 | 13 |
14 namespace blimp { | 14 namespace blimp { |
15 namespace engine { | 15 namespace engine { |
16 namespace { | 16 namespace { |
17 | 17 |
18 mojom::BlobChannelPtr GetConnectedBlobChannel() { | 18 mojom::BlobChannelPtr GetConnectedBlobChannel() { |
19 mojom::BlobChannelPtr blob_channel_ptr; | 19 mojom::BlobChannelPtr blob_channel_ptr; |
20 content::RenderThread::Get()->GetRemoteInterfaces()->GetInterface( | 20 content::RenderThread::Get()->GetRemoteInterfaces()->GetInterface( |
21 &blob_channel_ptr); | 21 &blob_channel_ptr); |
22 CHECK(blob_channel_ptr) << "Could not connect to BlobChannel Mojo interface."; | 22 CHECK(blob_channel_ptr) << "Could not connect to BlobChannel Mojo interface."; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 VLOG(1) << "Received cache state from browser (" << cache_state.size() | 126 VLOG(1) << "Received cache state from browser (" << cache_state.size() |
127 << " items)"; | 127 << " items)"; |
128 replication_state_.clear(); | 128 replication_state_.clear(); |
129 for (const auto& next_item : cache_state) { | 129 for (const auto& next_item : cache_state) { |
130 replication_state_[next_item.first] = next_item.second; | 130 replication_state_[next_item.first] = next_item.second; |
131 } | 131 } |
132 } | 132 } |
133 | 133 |
134 } // namespace engine | 134 } // namespace engine |
135 } // namespace blimp | 135 } // namespace blimp |
OLD | NEW |