blob: 01932c723bd320ca9b6c5c6fc174d71e2c2ffa93 [file] [log] [blame]
// Copyright 2015 The Weave 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 <string>
#include <base/values.h>
#include "src/notification/notification_delegate.h"
namespace weave {
// Parses the notification JSON object received from GCD server and invokes
// the appropriate method from the |delegate|.
// Returns false if unexpected or malformed notification is received.
bool ParseNotificationJson(const base::DictionaryValue& notification,
NotificationDelegate* delegate,
const std::string& channel_name);
} // namespace weave