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

Side by Side Diff: components/sync/core_impl/attachments/attachment_uploader_impl.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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 #include "components/sync/core/attachments/attachment_uploader_impl.h" 5 #include "components/sync/core/attachments/attachment_uploader_impl.h"
6 6
7 #include <stdint.h>
8
9 #include <string>
10 #include <utility> 7 #include <utility>
11 #include <vector> 8 #include <vector>
12 9
13 #include "base/base64.h" 10 #include "base/base64.h"
14 #include "base/base64url.h" 11 #include "base/base64url.h"
15 #include "base/bind.h" 12 #include "base/bind.h"
16 #include "base/location.h" 13 #include "base/location.h"
17 #include "base/macros.h"
18 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
19 #include "base/metrics/sparse_histogram.h" 15 #include "base/metrics/sparse_histogram.h"
20 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
21 #include "base/strings/string_piece.h" 17 #include "base/strings/string_piece.h"
22 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
23 #include "base/sys_byteorder.h" 19 #include "base/sys_byteorder.h"
24 #include "base/threading/non_thread_safe.h"
25 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
26 #include "components/sync/api/attachments/attachment.h" 21 #include "components/sync/api/attachments/attachment.h"
27 #include "components/sync/protocol/sync.pb.h" 22 #include "components/sync/protocol/sync.pb.h"
28 #include "google_apis/gaia/gaia_constants.h" 23 #include "google_apis/gaia/gaia_constants.h"
29 #include "net/base/load_flags.h" 24 #include "net/base/load_flags.h"
30 #include "net/http/http_status_code.h" 25 #include "net/http/http_status_code.h"
31 #include "net/url_request/url_fetcher.h" 26 #include "net/url_request/url_fetcher.h"
32 #include "net/url_request/url_fetcher_delegate.h" 27 #include "net/url_request/url_fetcher_delegate.h"
33 #include "net/url_request/url_request_status.h" 28 #include "net/url_request/url_request_status.h"
34 29
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 "%s: %s", kSyncStoreBirthday, encoded_store_birthday.c_str())); 389 "%s: %s", kSyncStoreBirthday, encoded_store_birthday.c_str()));
395 390
396 // Use field number to pass ModelType because it's stable and we have server 391 // Use field number to pass ModelType because it's stable and we have server
397 // code to decode it. 392 // code to decode it.
398 const int field_number = GetSpecificsFieldNumberFromModelType(model_type); 393 const int field_number = GetSpecificsFieldNumberFromModelType(model_type);
399 fetcher->AddExtraRequestHeader( 394 fetcher->AddExtraRequestHeader(
400 base::StringPrintf("%s: %d", kSyncDataTypeId, field_number)); 395 base::StringPrintf("%s: %d", kSyncDataTypeId, field_number));
401 } 396 }
402 397
403 } // namespace syncer 398 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698