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

Side by Side Diff: components/component_updater/background_downloader_win.cc

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add more checked casts Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/component_updater/background_downloader_win.h" 5 #include "components/component_updater/background_downloader_win.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlcom.h> 8 #include <atlcom.h>
9 9
10 #include <functional> 10 #include <functional>
11 #include <iomanip> 11 #include <iomanip>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/message_loop/message_loop_proxy.h" 15 #include "base/message_loop/message_loop_proxy.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "base/strings/sys_string_conversions.h" 17 #include "base/strings/sys_string_conversions.h"
18 #include "base/win/scoped_co_mem.h" 18 #include "base/win/scoped_co_mem.h"
19 #include "chrome/browser/component_updater/component_updater_utils.h" 19 #include "components/component_updater/component_updater_utils.h"
20 #include "ui/base/win/atl_module.h" 20 #include "ui/base/win/atl_module.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 using base::win::ScopedCoMem; 23 using base::win::ScopedCoMem;
24 using base::win::ScopedComPtr; 24 using base::win::ScopedComPtr;
25 25
26 // The class BackgroundDownloader in this module is an adapter between 26 // The class BackgroundDownloader in this module is an adapter between
27 // the CrxDownloader interface and the BITS service interfaces. 27 // the CrxDownloader interface and the BITS service interfaces.
28 // The interface exposed on the CrxDownloader code runs on the main thread, 28 // The interface exposed on the CrxDownloader code runs on the main thread,
29 // while the BITS specific code runs on a separate thread passed in by the 29 // while the BITS specific code runs on a separate thread passed in by the
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // must match as a job only contains one file. 757 // must match as a job only contains one file.
758 DCHECK(progress.Completed); 758 DCHECK(progress.Completed);
759 DCHECK_EQ(progress.BytesTotal, progress.BytesTransferred); 759 DCHECK_EQ(progress.BytesTotal, progress.BytesTransferred);
760 760
761 response_ = base::FilePath(local_name); 761 response_ = base::FilePath(local_name);
762 762
763 return S_OK; 763 return S_OK;
764 } 764 }
765 765
766 } // namespace component_updater 766 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698