summaryrefslogtreecommitdiffstats
path: root/blimp/net/null_blimp_message_processor.cc
blob: 40e93881ce5c468f5e2d08bc7cb1bdb8cdd89517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2015 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.

#include "blimp/net/null_blimp_message_processor.h"

#include "blimp/common/logging.h"
#include "blimp/net/common.h"

namespace blimp {

NullBlimpMessageProcessor::~NullBlimpMessageProcessor() {}

void NullBlimpMessageProcessor::ProcessMessage(
    scoped_ptr<BlimpMessage> message,
    const net::CompletionCallback& callback) {
  DVLOG(2) << "Dropped message: " << *message;
  if (!callback.is_null())
    callback.Run(net::OK);
}

}  // namespace blimp