| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.h" | 5 #include "ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/values.h" | 13 #include "base/values.h" |
| 13 #include "components/gcm_driver/gcm_client.h" | 14 #include "components/gcm_driver/gcm_client.h" |
| 14 #include "components/gcm_driver/gcm_driver.h" | 15 #include "components/gcm_driver/gcm_driver.h" |
| 15 #include "components/gcm_driver/gcm_internals_constants.h" | 16 #include "components/gcm_driver/gcm_internals_constants.h" |
| 16 #include "components/gcm_driver/gcm_internals_helper.h" | 17 #include "components/gcm_driver/gcm_internals_helper.h" |
| 17 #include "components/gcm_driver/gcm_profile_service.h" | 18 #include "components/gcm_driver/gcm_profile_service.h" |
| 18 #include "grit/components_resources.h" | 19 #include "grit/components_resources.h" |
| 19 #include "ios/chrome/browser/chrome_url_constants.h" | 20 #include "ios/chrome/browser/chrome_url_constants.h" |
| 20 #include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory
.h" | 21 #include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory
.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 IDR_GCM_DRIVER_GCM_INTERNALS_JS); | 168 IDR_GCM_DRIVER_GCM_INTERNALS_JS); |
| 168 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); | 169 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); |
| 169 | 170 |
| 170 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), | 171 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), |
| 171 html_source); | 172 html_source); |
| 172 | 173 |
| 173 web_ui->AddMessageHandler(new GcmInternalsUIMessageHandler()); | 174 web_ui->AddMessageHandler(new GcmInternalsUIMessageHandler()); |
| 174 } | 175 } |
| 175 | 176 |
| 176 GCMInternalsUI::~GCMInternalsUI() {} | 177 GCMInternalsUI::~GCMInternalsUI() {} |
| OLD | NEW |