Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/browser/sync/notifier/bridged_sync_notifier.cc

Issue 9512005: [Sync] Move BridgedSyncNotifier and ChromeSyncNotificationBridge to glue/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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/sync/notifier/bridged_sync_notifier.h"
6
7 #include "chrome/browser/sync/notifier/chrome_sync_notification_bridge.h"
8
9 namespace sync_notifier {
10
11 BridgedSyncNotifier::BridgedSyncNotifier(
12 ChromeSyncNotificationBridge* bridge, SyncNotifier* delegate)
13 : bridge_(bridge), delegate_(delegate) {
14 DCHECK(bridge_);
15 DCHECK(delegate_.get());
16 }
17
18 BridgedSyncNotifier::~BridgedSyncNotifier() {
19 }
20
21 void BridgedSyncNotifier::AddObserver(SyncNotifierObserver* observer) {
22 delegate_->AddObserver(observer);
23 bridge_->AddObserver(observer);
24 }
25
26 void BridgedSyncNotifier::RemoveObserver(
27 SyncNotifierObserver* observer) {
28 bridge_->RemoveObserver(observer);
29 delegate_->RemoveObserver(observer);
30 }
31
32 void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) {
33 delegate_->SetUniqueId(unique_id);
34 }
35
36 void BridgedSyncNotifier::SetState(const std::string& state) {
37 delegate_->SetState(state);
38 }
39
40 void BridgedSyncNotifier::UpdateCredentials(
41 const std::string& email, const std::string& token) {
42 delegate_->UpdateCredentials(email, token);
43 }
44
45 void BridgedSyncNotifier::UpdateEnabledTypes(
46 syncable::ModelTypeSet enabled_types) {
47 delegate_->UpdateEnabledTypes(enabled_types);
48 }
49
50 void BridgedSyncNotifier::SendNotification(
51 syncable::ModelTypeSet changed_types) {
52 delegate_->SendNotification(changed_types);
53 }
54
55 } // namespace sync_notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/bridged_sync_notifier.h ('k') | chrome/browser/sync/notifier/bridged_sync_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698