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

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

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 private: 76 private:
77 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, 77 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest,
78 ExtractCrc32c_NoHeaders); 78 ExtractCrc32c_NoHeaders);
79 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_First); 79 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_First);
80 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_TooLong); 80 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_TooLong);
81 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_None); 81 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_None);
82 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_Empty); 82 FRIEND_TEST_ALL_PREFIXES(AttachmentDownloaderImplTest, ExtractCrc32c_Empty);
83 83
84 struct DownloadState; 84 struct DownloadState;
85 typedef std::string AttachmentUrl; 85 using AttachmentUrl = std::string;
86 typedef std::unordered_map<AttachmentUrl, std::unique_ptr<DownloadState>> 86 using StateMap =
87 StateMap; 87 std::unordered_map<AttachmentUrl, std::unique_ptr<DownloadState>>;
88 typedef std::vector<DownloadState*> StateList; 88 using StateList = std::vector<DownloadState*>;
89 89
90 std::unique_ptr<net::URLFetcher> CreateFetcher( 90 std::unique_ptr<net::URLFetcher> CreateFetcher(
91 const AttachmentUrl& url, 91 const AttachmentUrl& url,
92 const std::string& access_token); 92 const std::string& access_token);
93 void RequestAccessToken(DownloadState* download_state); 93 void RequestAccessToken(DownloadState* download_state);
94 void ReportResult( 94 void ReportResult(
95 const DownloadState& download_state, 95 const DownloadState& download_state,
96 const DownloadResult& result, 96 const DownloadResult& result,
97 const scoped_refptr<base::RefCountedString>& attachment_data); 97 const scoped_refptr<base::RefCountedString>& attachment_data);
98 98
(...skipping 22 matching lines...) Expand all
121 StateList requests_waiting_for_access_token_; 121 StateList requests_waiting_for_access_token_;
122 122
123 ModelType model_type_; 123 ModelType model_type_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl); 125 DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl);
126 }; 126 };
127 127
128 } // namespace syncer 128 } // namespace syncer
129 129
130 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_ 130 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ATTACHMENTS_ATTACHMENT_DOWNLOADER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_manager.h ('k') | components/sync/engine_impl/attachments/attachment_downloader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698