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 "chrome/browser/ui/webui/gcm_internals_ui.h" | 5 #include "chrome/browser/ui/webui/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/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
15 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | |
17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
18 #include "components/gcm_driver/gcm_client.h" | 18 #include "components/gcm_driver/gcm_client.h" |
19 #include "components/gcm_driver/gcm_driver.h" | 19 #include "components/gcm_driver/gcm_driver.h" |
20 #include "components/gcm_driver/gcm_internals_constants.h" | 20 #include "components/gcm_driver/gcm_internals_constants.h" |
21 #include "components/gcm_driver/gcm_internals_helper.h" | 21 #include "components/gcm_driver/gcm_internals_helper.h" |
22 #include "components/gcm_driver/gcm_profile_service.h" | 22 #include "components/gcm_driver/gcm_profile_service.h" |
23 #include "components/grit/components_resources.h" | 23 #include "components/grit/components_resources.h" |
24 #include "content/public/browser/web_ui.h" | 24 #include "content/public/browser/web_ui.h" |
25 #include "content/public/browser/web_ui_controller.h" | 25 #include "content/public/browser/web_ui_controller.h" |
26 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); | 171 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); |
172 html_source->UseGzip(std::unordered_set<std::string>()); | 172 html_source->UseGzip(std::unordered_set<std::string>()); |
173 | 173 |
174 Profile* profile = Profile::FromWebUI(web_ui); | 174 Profile* profile = Profile::FromWebUI(web_ui); |
175 content::WebUIDataSource::Add(profile, html_source); | 175 content::WebUIDataSource::Add(profile, html_source); |
176 | 176 |
177 web_ui->AddMessageHandler(base::MakeUnique<GcmInternalsUIMessageHandler>()); | 177 web_ui->AddMessageHandler(base::MakeUnique<GcmInternalsUIMessageHandler>()); |
178 } | 178 } |
179 | 179 |
180 GCMInternalsUI::~GCMInternalsUI() {} | 180 GCMInternalsUI::~GCMInternalsUI() {} |
OLD | NEW |