OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/data_usage/data_use_matcher.h" | 5 #include "chrome/browser/android/data_usage/data_use_matcher.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/time/default_tick_clock.h" | 11 #include "base/time/default_tick_clock.h" |
12 #include "base/time/tick_clock.h" | 12 #include "base/time/tick_clock.h" |
13 #include "chrome/browser/android/data_usage/external_data_use_observer.h" | 13 #include "chrome/browser/android/data_usage/external_data_use_observer.h" |
14 #include "third_party/re2/re2/re2.h" | 14 #include "third_party/re2/src/re2/re2.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace chrome { | 17 namespace chrome { |
18 | 18 |
19 namespace android { | 19 namespace android { |
20 | 20 |
21 DataUseMatcher::DataUseMatcher( | 21 DataUseMatcher::DataUseMatcher( |
22 const base::WeakPtr<DataUseTabModel>& data_use_tab_model, | 22 const base::WeakPtr<DataUseTabModel>& data_use_tab_model, |
23 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, | 23 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, |
24 const base::WeakPtr<ExternalDataUseObserver>& external_data_use_observer, | 24 const base::WeakPtr<ExternalDataUseObserver>& external_data_use_observer, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return label_; | 171 return label_; |
172 } | 172 } |
173 | 173 |
174 const base::TimeTicks& DataUseMatcher::MatchingRule::expiration() const { | 174 const base::TimeTicks& DataUseMatcher::MatchingRule::expiration() const { |
175 return expiration_; | 175 return expiration_; |
176 } | 176 } |
177 | 177 |
178 } // namespace android | 178 } // namespace android |
179 | 179 |
180 } // namespace chrome | 180 } // namespace chrome |
OLD | NEW |