OLD | NEW |
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 "chrome/browser/component_updater/component_updater_resource_throttle.h
" | 5 #include "chrome/browser/component_updater/component_updater_resource_throttle.h
" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/component_updater/component_updater_service.h" | 9 #include "components/component_updater/component_updater_service.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "content/public/browser/resource_controller.h" | 11 #include "content/public/browser/resource_controller.h" |
12 #include "content/public/browser/resource_throttle.h" | 12 #include "content/public/browser/resource_throttle.h" |
13 | 13 |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
16 namespace component_updater { | 16 namespace component_updater { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 BrowserThread::UI, | 99 BrowserThread::UI, |
100 FROM_HERE, | 100 FROM_HERE, |
101 base::Bind(&ComponentUpdateService::MaybeThrottle, | 101 base::Bind(&ComponentUpdateService::MaybeThrottle, |
102 base::Unretained(cus), | 102 base::Unretained(cus), |
103 crx_id, | 103 crx_id, |
104 base::Bind(&UnblockThrottleOnUIThread, rt->AsWeakPtr()))); | 104 base::Bind(&UnblockThrottleOnUIThread, rt->AsWeakPtr()))); |
105 return rt; | 105 return rt; |
106 } | 106 } |
107 | 107 |
108 } // namespace component_updater | 108 } // namespace component_updater |
OLD | NEW |