Don't preload rarely seen large images
[chromium-blink-merge.git] / components / proximity_auth / ble / fake_wire_message.cc
blob193ac04c6496cc7afbac9f0b75a8b5c73e56d11a
1 // Copyright 2015 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.
5 #include <string>
7 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "components/proximity_auth/ble/fake_wire_message.h"
10 #include "components/proximity_auth/wire_message.h"
12 namespace proximity_auth {
14 FakeWireMessage::FakeWireMessage(const std::string& payload)
15 : WireMessage("", payload) {
18 scoped_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
19 const std::string& serialized_message,
20 bool* is_incomplete_message) {
21 *is_incomplete_message = false;
22 return scoped_ptr<FakeWireMessage>(new FakeWireMessage(serialized_message));
25 std::string FakeWireMessage::Serialize() const {
26 return std::string(payload());