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

Side by Side Diff: components/sync/core/attachments/attachment_downloader_impl.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void ReportResult( 97 void ReportResult(
98 const DownloadState& download_state, 98 const DownloadState& download_state,
99 const DownloadResult& result, 99 const DownloadResult& result,
100 const scoped_refptr<base::RefCountedString>& attachment_data); 100 const scoped_refptr<base::RefCountedString>& attachment_data);
101 101
102 // Extract the crc32c from an X-Goog-Hash header in |headers|. 102 // Extract the crc32c from an X-Goog-Hash header in |headers|.
103 // 103 //
104 // Return true if a crc32c was found and useable for checking data integrity. 104 // Return true if a crc32c was found and useable for checking data integrity.
105 // "Usable" means headers are present, there is "x-goog-hash" header with 105 // "Usable" means headers are present, there is "x-goog-hash" header with
106 // "crc32c" hash in it, this hash is correctly base64 encoded 32 bit integer. 106 // "crc32c" hash in it, this hash is correctly base64 encoded 32 bit integer.
107 SYNC_EXPORT static bool ExtractCrc32c(const net::HttpResponseHeaders* headers, 107 static bool ExtractCrc32c(const net::HttpResponseHeaders* headers,
108 uint32_t* crc32c); 108 uint32_t* crc32c);
109 109
110 GURL sync_service_url_; 110 GURL sync_service_url_;
111 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 111 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
112 112
113 std::string account_id_; 113 std::string account_id_;
114 OAuth2TokenService::ScopeSet oauth2_scopes_; 114 OAuth2TokenService::ScopeSet oauth2_scopes_;
115 scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider> 115 scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>
116 token_service_provider_; 116 token_service_provider_;
117 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; 117 std::unique_ptr<OAuth2TokenService::Request> access_token_request_;
118 std::string raw_store_birthday_; 118 std::string raw_store_birthday_;
119 119
120 StateMap state_map_; 120 StateMap state_map_;
121 // |requests_waiting_for_access_token_| only keeps references to DownloadState 121 // |requests_waiting_for_access_token_| only keeps references to DownloadState
122 // objects while access token request is pending. It doesn't control objects' 122 // objects while access token request is pending. It doesn't control objects'
123 // lifetime. 123 // lifetime.
124 StateList requests_waiting_for_access_token_; 124 StateList requests_waiting_for_access_token_;
125 125
126 ModelType model_type_; 126 ModelType model_type_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); 128 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl);
129 }; 129 };
130 130
131 } // namespace syncer 131 } // namespace syncer
132 132
133 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 133 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/core/attachments/attachment_downloader.h ('k') | components/sync/core/attachments/attachment_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698