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 #ifndef COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ |
6 #define COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "content/public/browser/web_ui_message_handler.h" | 13 #include "content/public/browser/web_ui_message_handler.h" |
13 | 14 |
14 namespace dom_distiller { | 15 namespace dom_distiller { |
15 | 16 |
16 class DomDistillerService; | 17 class DomDistillerService; |
17 | 18 |
18 // Handler class for DOM Distiller list operations. | 19 // Handler class for DOM Distiller list operations. |
19 class DomDistillerHandler : public content::WebUIMessageHandler { | 20 class DomDistillerHandler : public content::WebUIMessageHandler { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 56 |
56 // Factory for the creating refs in callbacks. | 57 // Factory for the creating refs in callbacks. |
57 base::WeakPtrFactory<DomDistillerHandler> weak_ptr_factory_; | 58 base::WeakPtrFactory<DomDistillerHandler> weak_ptr_factory_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(DomDistillerHandler); | 60 DISALLOW_COPY_AND_ASSIGN(DomDistillerHandler); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace dom_distiller | 63 } // namespace dom_distiller |
63 | 64 |
64 #endif // COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ | 65 #endif // COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_HANDLER_H_ |
OLD | NEW |