| OLD | NEW |
| 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" | |
| 10 #include "google_apis/gaia/identity_provider.h" | 9 #include "google_apis/gaia/identity_provider.h" |
| 11 #include "jingle/notifier/base/notifier_options.h" | 10 #include "jingle/notifier/base/notifier_options.h" |
| 12 #include "jingle/notifier/listener/push_client.h" | 11 #include "jingle/notifier/listener/push_client.h" |
| 13 #include "net/url_request/url_request_context_getter.h" | 12 #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 Loading... |
| 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 |
| OLD | NEW |