| 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_APP_NOTIFY_CHANNEL_SETUP_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/extensions/app_notify_channel_ui.h" | 13 #include "chrome/browser/extensions/app_notify_channel_ui.h" |
| 14 #include "chrome/common/net/gaia/oauth2_access_token_consumer.h" | 14 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| 15 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" | 15 #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "net/url_request/url_fetcher.h" | 17 #include "net/url_request/url_fetcher.h" |
| 18 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
| 19 | 19 |
| 20 class Profile; | 20 class Profile; |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 class AppNotifyChannelSetupTest; | 23 class AppNotifyChannelSetupTest; |
| 24 | 24 |
| 25 // This class uses the browser login credentials to setup app notifications | 25 // This class uses the browser login credentials to setup app notifications |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // infinite loop of trying to generate access token, if that fails, try | 171 // infinite loop of trying to generate access token, if that fails, try |
| 172 // to login the user and generate access token, etc. | 172 // to login the user and generate access token, etc. |
| 173 bool oauth2_access_token_failure_; | 173 bool oauth2_access_token_failure_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelSetup); | 175 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelSetup); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace extensions | 178 } // namespace extensions |
| 179 | 179 |
| 180 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ | 180 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ |
| OLD | NEW |