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 #ifndef CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.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/invalidation/impl/invalidation_logger_observer.h" | 14 #include "components/invalidation/impl/invalidation_logger_observer.h" |
14 #include "components/invalidation/public/invalidation_util.h" | 15 #include "components/invalidation/public/invalidation_util.h" |
15 #include "content/public/browser/web_ui_message_handler.h" | 16 #include "content/public/browser/web_ui_message_handler.h" |
16 | 17 |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace invalidation { | 20 namespace invalidation { |
20 class InvalidationLogger; | 21 class InvalidationLogger; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Used to get the information necessary to display to the JS and to | 62 // Used to get the information necessary to display to the JS and to |
62 // register ourselves as Observers for any notifications. | 63 // register ourselves as Observers for any notifications. |
63 invalidation::InvalidationLogger* logger_; | 64 invalidation::InvalidationLogger* logger_; |
64 | 65 |
65 base::WeakPtrFactory<InvalidationsMessageHandler> weak_ptr_factory_; | 66 base::WeakPtrFactory<InvalidationsMessageHandler> weak_ptr_factory_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(InvalidationsMessageHandler); | 68 DISALLOW_COPY_AND_ASSIGN(InvalidationsMessageHandler); |
68 }; | 69 }; |
69 | 70 |
70 #endif // CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ | 71 #endif // CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_MESSAGE_HANDLER_H_ |
OLD | NEW |