1// Copyright (c) 2010 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.
4
5#include "chrome/browser/notifications/notification.h"
6
7Notification::Notification(const GURL& origin_url,
8                           const GURL& content_url,
9                           const string16& display_source,
10                           const string16& replace_id,
11                           NotificationDelegate* delegate)
12    : origin_url_(origin_url),
13      content_url_(content_url),
14      display_source_(display_source),
15      replace_id_(replace_id),
16      delegate_(delegate) {
17}
18
19Notification::Notification(const Notification& notification)
20    : origin_url_(notification.origin_url()),
21      content_url_(notification.content_url()),
22      display_source_(notification.display_source()),
23      replace_id_(notification.replace_id()),
24      delegate_(notification.delegate()) {
25}
26
27Notification::~Notification() {}
28
29Notification& Notification::operator=(const Notification& notification) {
30  origin_url_ = notification.origin_url();
31  content_url_ = notification.content_url();
32  display_source_ = notification.display_source();
33  replace_id_ = notification.replace_id();
34  delegate_ = notification.delegate();
35  return *this;
36}
37