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

Side by Side Diff: sync/notifier/non_blocking_invalidation_notifier.h

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init Created 8 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // An implementation of SyncNotifier that wraps InvalidationNotifier 5 // An implementation of SyncNotifier that wraps InvalidationNotifier
6 // on its own thread. 6 // on its own thread.
7 7
8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ 8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_
9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ 9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "jingle/notifier/base/notifier_options.h" 19 #include "jingle/notifier/base/notifier_options.h"
20 #include "sync/internal_api/public/util/weak_handle.h"
20 #include "sync/notifier/invalidation_state_tracker.h" 21 #include "sync/notifier/invalidation_state_tracker.h"
21 #include "sync/notifier/sync_notifier.h" 22 #include "sync/notifier/sync_notifier.h"
22 #include "sync/notifier/sync_notifier_observer.h" 23 #include "sync/notifier/sync_notifier_observer.h"
23 #include "sync/util/weak_handle.h"
24 24
25 namespace base { 25 namespace base {
26 class MessageLoopProxy; 26 class MessageLoopProxy;
27 } 27 }
28 28
29 namespace sync_notifier { 29 namespace sync_notifier {
30 30
31 class NonBlockingInvalidationNotifier 31 class NonBlockingInvalidationNotifier
32 : public SyncNotifier, 32 : public SyncNotifier,
33 // SyncNotifierObserver to "observe" our Core via WeakHandle. 33 // SyncNotifierObserver to "observe" our Core via WeakHandle.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 scoped_refptr<Core> core_; 75 scoped_refptr<Core> core_;
76 scoped_refptr<base::MessageLoopProxy> parent_message_loop_proxy_; 76 scoped_refptr<base::MessageLoopProxy> parent_message_loop_proxy_;
77 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 77 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidationNotifier); 79 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidationNotifier);
80 }; 80 };
81 81
82 } // namespace sync_notifier 82 } // namespace sync_notifier
83 83
84 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ 84 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698