OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/offline/offline_internals_ui_message_handler.h
" | 5 #include "chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h
" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/guid.h" | 12 #include "base/guid.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 14 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
15 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 15 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "components/offline_pages/client_namespace_constants.h" | 17 #include "components/offline_pages/core/client_namespace_constants.h" |
18 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
19 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
20 | 20 |
21 namespace offline_internals { | 21 namespace offline_internals { |
22 | 22 |
23 OfflineInternalsUIMessageHandler::OfflineInternalsUIMessageHandler() | 23 OfflineInternalsUIMessageHandler::OfflineInternalsUIMessageHandler() |
24 : offline_page_model_(nullptr), | 24 : offline_page_model_(nullptr), |
25 request_coordinator_(nullptr), | 25 request_coordinator_(nullptr), |
26 weak_ptr_factory_(this) {} | 26 weak_ptr_factory_(this) {} |
27 | 27 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 // Get the offline page model associated with this web ui. | 340 // Get the offline page model associated with this web ui. |
341 Profile* profile = Profile::FromWebUI(web_ui()); | 341 Profile* profile = Profile::FromWebUI(web_ui()); |
342 offline_page_model_ = | 342 offline_page_model_ = |
343 offline_pages::OfflinePageModelFactory::GetForBrowserContext(profile); | 343 offline_pages::OfflinePageModelFactory::GetForBrowserContext(profile); |
344 request_coordinator_ = | 344 request_coordinator_ = |
345 offline_pages::RequestCoordinatorFactory::GetForBrowserContext(profile); | 345 offline_pages::RequestCoordinatorFactory::GetForBrowserContext(profile); |
346 } | 346 } |
347 | 347 |
348 } // namespace offline_internals | 348 } // namespace offline_internals |
OLD | NEW |