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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
15 #include "components/gcm_driver/fake_gcm_client_factory.h" | 16 #include "components/gcm_driver/fake_gcm_client_factory.h" |
16 #include "components/gcm_driver/fake_gcm_driver.h" | 17 #include "components/gcm_driver/fake_gcm_driver.h" |
17 #include "components/gcm_driver/gcm_driver.h" | 18 #include "components/gcm_driver/gcm_driver.h" |
18 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
19 | 20 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 193 } |
193 | 194 |
194 void FakeGCMProfileService::DispatchMessage(const std::string& app_id, | 195 void FakeGCMProfileService::DispatchMessage(const std::string& app_id, |
195 const IncomingMessage& message) { | 196 const IncomingMessage& message) { |
196 CustomFakeGCMDriver* custom_driver = | 197 CustomFakeGCMDriver* custom_driver = |
197 static_cast<CustomFakeGCMDriver*>(driver()); | 198 static_cast<CustomFakeGCMDriver*>(driver()); |
198 custom_driver->OnDispatchMessage(app_id, message); | 199 custom_driver->OnDispatchMessage(app_id, message); |
199 } | 200 } |
200 | 201 |
201 } // namespace gcm | 202 } // namespace gcm |
OLD | NEW |