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 #ifndef CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "components/offline_pages/background/request_coordinator.h" | 10 #include "components/offline_pages/core/background/request_coordinator.h" |
11 #include "components/offline_pages/background/save_page_request.h" | 11 #include "components/offline_pages/core/background/save_page_request.h" |
12 #include "components/offline_pages/offline_page_model.h" | 12 #include "components/offline_pages/core/offline_page_model.h" |
13 #include "components/offline_pages/offline_store_types.h" | 13 #include "components/offline_pages/core/offline_store_types.h" |
14 #include "content/public/browser/web_ui_message_handler.h" | 14 #include "content/public/browser/web_ui_message_handler.h" |
15 | 15 |
16 namespace offline_pages { | 16 namespace offline_pages { |
17 enum class GetRequestsResult; | 17 enum class GetRequestsResult; |
18 } | 18 } |
19 | 19 |
20 namespace offline_internals { | 20 namespace offline_internals { |
21 | 21 |
22 // Class acting as a controller of the chrome://offline-internals WebUI. | 22 // Class acting as a controller of the chrome://offline-internals WebUI. |
23 class OfflineInternalsUIMessageHandler : public content::WebUIMessageHandler { | 23 class OfflineInternalsUIMessageHandler : public content::WebUIMessageHandler { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Factory for creating references in callbacks. | 99 // Factory for creating references in callbacks. |
100 base::WeakPtrFactory<OfflineInternalsUIMessageHandler> weak_ptr_factory_; | 100 base::WeakPtrFactory<OfflineInternalsUIMessageHandler> weak_ptr_factory_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(OfflineInternalsUIMessageHandler); | 102 DISALLOW_COPY_AND_ASSIGN(OfflineInternalsUIMessageHandler); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace offline_internals | 105 } // namespace offline_internals |
106 | 106 |
107 #endif // CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H
_ | 107 #endif // CHROME_BROWSER_UI_WEBUI_OFFLINE_OFFLINE_INTERNALS_UI_MESSAGE_HANDLER_H
_ |
OLD | NEW |