OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Convenience method to get the PushMessagingAPI for a profile. | 111 // Convenience method to get the PushMessagingAPI for a profile. |
112 static PushMessagingAPI* Get(Profile* profile); | 112 static PushMessagingAPI* Get(Profile* profile); |
113 | 113 |
114 // ProfileKeyedService implementation. | 114 // ProfileKeyedService implementation. |
115 virtual void Shutdown() OVERRIDE; | 115 virtual void Shutdown() OVERRIDE; |
116 | 116 |
117 // For testing purposes. | 117 // For testing purposes. |
118 PushMessagingEventRouter* GetEventRouterForTest(); | 118 PushMessagingEventRouter* GetEventRouterForTest(); |
119 | 119 |
120 private: | 120 private: |
121 void InitializeEventRouter(); | |
122 | |
123 // Created at ExtensionService startup. | 121 // Created at ExtensionService startup. |
124 scoped_ptr<PushMessagingEventRouter> push_messaging_event_router_; | 122 scoped_ptr<PushMessagingEventRouter> push_messaging_event_router_; |
125 | 123 |
126 DISALLOW_COPY_AND_ASSIGN(PushMessagingAPI); | 124 DISALLOW_COPY_AND_ASSIGN(PushMessagingAPI); |
127 }; | 125 }; |
128 | 126 |
129 } // namespace extension | 127 } // namespace extension |
130 | 128 |
131 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ | 129 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ |
OLD | NEW |