Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: chrome/browser/extensions/app_notify_channel_setup.h

Issue 10554008: Move content::URLFetcher static functions to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win link error Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/common/net/gaia/oauth2_access_token_consumer.h"
15 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" 15 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h"
16 #include "content/public/common/url_fetcher.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.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 AppNotifyChannelSetupTest; 20 class AppNotifyChannelSetupTest;
21 class Profile; 21 class Profile;
22 22
23 // This class uses the browser login credentials to setup app notifications 23 // This class uses the browser login credentials to setup app notifications
24 // for a given app. 24 // for a given app.
25 // 25 //
26 // Performs the following steps when Start() is called: 26 // Performs the following steps when Start() is called:
27 // 1. If the user is not logged in, prompt the user to login. 27 // 1. If the user is not logged in, prompt the user to login.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Keeps track of whether we have encountered failure in OAuth2 access 166 // Keeps track of whether we have encountered failure in OAuth2 access
167 // token generation already. We use this to prevent us from doing an 167 // token generation already. We use this to prevent us from doing an
168 // infinite loop of trying to generate access token, if that fails, try 168 // infinite loop of trying to generate access token, if that fails, try
169 // to login the user and generate access token, etc. 169 // to login the user and generate access token, etc.
170 bool oauth2_access_token_failure_; 170 bool oauth2_access_token_failure_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelSetup); 172 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelSetup);
173 }; 173 };
174 174
175 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_ 175 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_SETUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698