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

Side by Side Diff: components/invalidation/p2p_invalidation_service.cc

Issue 294123004: Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/invalidation/p2p_invalidation_service.h" 5 #include "components/invalidation/p2p_invalidation_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/invalidation/invalidation_service_util.h" 8 #include "components/invalidation/invalidation_service_util.h"
9 #include "components/invalidation/p2p_invalidator.h"
9 #include "google_apis/gaia/identity_provider.h" 10 #include "google_apis/gaia/identity_provider.h"
10 #include "jingle/notifier/base/notifier_options.h" 11 #include "jingle/notifier/base/notifier_options.h"
11 #include "jingle/notifier/listener/push_client.h" 12 #include "jingle/notifier/listener/push_client.h"
12 #include "net/url_request/url_request_context_getter.h" 13 #include "net/url_request/url_request_context_getter.h"
13 #include "sync/notifier/p2p_invalidator.h"
14 14
15 namespace net { 15 namespace net {
16 class URLRequestContextGetter; 16 class URLRequestContextGetter;
17 } 17 }
18 18
19 namespace invalidation { 19 namespace invalidation {
20 20
21 P2PInvalidationService::P2PInvalidationService( 21 P2PInvalidationService::P2PInvalidationService(
22 scoped_ptr<IdentityProvider> identity_provider, 22 scoped_ptr<IdentityProvider> identity_provider,
23 const scoped_refptr<net::URLRequestContextGetter>& request_context, 23 const scoped_refptr<net::URLRequestContextGetter>& request_context,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::Callback<void(const base::DictionaryValue&)> caller) const { 82 base::Callback<void(const base::DictionaryValue&)> caller) const {
83 base::DictionaryValue value; 83 base::DictionaryValue value;
84 caller.Run(value); 84 caller.Run(value);
85 } 85 }
86 86
87 IdentityProvider* P2PInvalidationService::GetIdentityProvider() { 87 IdentityProvider* P2PInvalidationService::GetIdentityProvider() {
88 return identity_provider_.get(); 88 return identity_provider_.get();
89 } 89 }
90 90
91 } // namespace invalidation 91 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/p2p_invalidation_service.h ('k') | components/invalidation/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698