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

Side by Side Diff: chrome/service/gaia/service_gaia_authenticator.h

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 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
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.h ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ 5 #ifndef CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_
6 #define CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ 6 #define CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "chrome/common/net/url_fetcher.h"
14 #include "chrome/common/net/gaia/gaia_authenticator.h" 13 #include "chrome/common/net/gaia/gaia_authenticator.h"
14 #include "content/common/url_fetcher.h"
15 15
16 namespace base { 16 namespace base {
17 class MessageLoopProxy; 17 class MessageLoopProxy;
18 } 18 }
19 19
20 // A GaiaAuthenticator implementation to be used in the service process (where 20 // A GaiaAuthenticator implementation to be used in the service process (where
21 // we cannot rely on the existence of a Profile) 21 // we cannot rely on the existence of a Profile)
22 class ServiceGaiaAuthenticator 22 class ServiceGaiaAuthenticator
23 : public base::RefCountedThreadSafe<ServiceGaiaAuthenticator>, 23 : public base::RefCountedThreadSafe<ServiceGaiaAuthenticator>,
24 public URLFetcher::Delegate, 24 public URLFetcher::Delegate,
(...skipping 25 matching lines...) Expand all
50 base::WaitableEvent http_post_completed_; 50 base::WaitableEvent http_post_completed_;
51 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 51 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
52 int http_response_code_; 52 int http_response_code_;
53 std::string response_data_; 53 std::string response_data_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ServiceGaiaAuthenticator); 55 DISALLOW_COPY_AND_ASSIGN(ServiceGaiaAuthenticator);
56 }; 56 };
57 57
58 #endif // CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ 58 #endif // CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_
59 59
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.h ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698