OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/services/gcm/fake_gcm_profile_service.h" | 5 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "components/gcm_driver/fake_gcm_client_factory.h" | 18 #include "components/gcm_driver/fake_gcm_client_factory.h" |
19 #include "components/gcm_driver/fake_gcm_driver.h" | 19 #include "components/gcm_driver/fake_gcm_driver.h" |
20 #include "components/gcm_driver/gcm_driver.h" | 20 #include "components/gcm_driver/gcm_driver.h" |
21 #include "content/public/browser/browser_context.h" | 21 #include "content/public/browser/browser_context.h" |
22 | 22 |
23 namespace gcm { | 23 namespace gcm { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 | 197 |
198 void FakeGCMProfileService::DispatchMessage(const std::string& app_id, | 198 void FakeGCMProfileService::DispatchMessage(const std::string& app_id, |
199 const IncomingMessage& message) { | 199 const IncomingMessage& message) { |
200 CustomFakeGCMDriver* custom_driver = | 200 CustomFakeGCMDriver* custom_driver = |
201 static_cast<CustomFakeGCMDriver*>(driver()); | 201 static_cast<CustomFakeGCMDriver*>(driver()); |
202 custom_driver->OnDispatchMessage(app_id, message); | 202 custom_driver->OnDispatchMessage(app_id, message); |
203 } | 203 } |
204 | 204 |
205 } // namespace gcm | 205 } // namespace gcm |
OLD | NEW |