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

Side by Side Diff: chrome/service/cloud_print/cloud_print_auth.h

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void OnGetTokensResponse(const std::string& refresh_token, 67 virtual void OnGetTokensResponse(const std::string& refresh_token,
68 const std::string& access_token, 68 const std::string& access_token,
69 int expires_in_seconds) OVERRIDE; 69 int expires_in_seconds) OVERRIDE;
70 virtual void OnRefreshTokenResponse(const std::string& access_token, 70 virtual void OnRefreshTokenResponse(const std::string& access_token,
71 int expires_in_seconds) OVERRIDE; 71 int expires_in_seconds) OVERRIDE;
72 virtual void OnOAuthError() OVERRIDE; 72 virtual void OnOAuthError() OVERRIDE;
73 virtual void OnNetworkError(int response_code) OVERRIDE; 73 virtual void OnNetworkError(int response_code) OVERRIDE;
74 74
75 // CloudPrintURLFetcher::Delegate implementation. 75 // CloudPrintURLFetcher::Delegate implementation.
76 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 76 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
77 const content::URLFetcher* source, 77 const net::URLFetcher* source,
78 const GURL& url, 78 const GURL& url,
79 base::DictionaryValue* json_data, 79 base::DictionaryValue* json_data,
80 bool succeeded) OVERRIDE; 80 bool succeeded) OVERRIDE;
81 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; 81 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
82 virtual std::string GetAuthHeader() OVERRIDE; 82 virtual std::string GetAuthHeader() OVERRIDE;
83 83
84 private: 84 private:
85 friend class base::RefCountedThreadSafe<CloudPrintAuth>; 85 friend class base::RefCountedThreadSafe<CloudPrintAuth>;
86 virtual ~CloudPrintAuth(); 86 virtual ~CloudPrintAuth();
87 87
(...skipping 19 matching lines...) Expand all
107 std::string robot_email_; 107 std::string robot_email_;
108 // client login token used to authenticate request to cloud print server to 108 // client login token used to authenticate request to cloud print server to
109 // get the robot account. 109 // get the robot account.
110 std::string client_login_token_; 110 std::string client_login_token_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); 112 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth);
113 }; 113 };
114 114
115 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 115 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
116 116
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/oauth2_revocation_fetcher.cc ('k') | chrome/service/cloud_print/cloud_print_auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698