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" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/extensions/api/push_messaging/obfuscated_gaia_id_fetche
r.h" |
14 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler_delegate.h" | 15 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler_delegate.h" |
| 16 #include "chrome/browser/extensions/extension_function.h" |
15 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
17 #include "chrome/browser/extensions/api/push_messaging/obfuscated_gaia_id_fetche
r.h" | 19 #include "google_apis/gaia/google_service_auth_error.h" |
18 #include "chrome/browser/extensions/extension_function.h" | |
19 #include "chrome/common/net/gaia/google_service_auth_error.h" | |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 class PushMessagingInvalidationMapper; | 25 class PushMessagingInvalidationMapper; |
26 class ObfuscatedGaiaIdFetcher; | 26 class ObfuscatedGaiaIdFetcher; |
27 | 27 |
28 // Observes a single InvalidationHandler and generates onMessage events. | 28 // Observes a single InvalidationHandler and generates onMessage events. |
29 class PushMessagingEventRouter | 29 class PushMessagingEventRouter |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void OnObfuscatedGaiaIdFetchFailure( | 84 virtual void OnObfuscatedGaiaIdFetchFailure( |
85 const GoogleServiceAuthError& error) OVERRIDE; | 85 const GoogleServiceAuthError& error) OVERRIDE; |
86 scoped_ptr<ObfuscatedGaiaIdFetcher> fetcher_; | 86 scoped_ptr<ObfuscatedGaiaIdFetcher> fetcher_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(PushMessagingGetChannelIdFunction); | 88 DISALLOW_COPY_AND_ASSIGN(PushMessagingGetChannelIdFunction); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace extension | 91 } // namespace extension |
92 | 92 |
93 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ | 93 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_API_H__ |
OLD | NEW |