OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/managed_mode/managed_mode_url_filter.h" | 5 #include "chrome/browser/managed_mode/managed_mode_url_filter.h" |
6 | 6 |
| 7 #include "base/containers/hash_tables.h" |
7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
8 #include "base/hash_tables.h" | |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/sha1.h" | 11 #include "base/sha1.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "extensions/common/matcher/url_matcher.h" | 17 #include "extensions/common/matcher/url_matcher.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 324 |
325 void ManagedModeURLFilter::RemoveObserver(Observer* observer) { | 325 void ManagedModeURLFilter::RemoveObserver(Observer* observer) { |
326 observers_.RemoveObserver(observer); | 326 observers_.RemoveObserver(observer); |
327 } | 327 } |
328 | 328 |
329 void ManagedModeURLFilter::SetContents(scoped_ptr<Contents> contents) { | 329 void ManagedModeURLFilter::SetContents(scoped_ptr<Contents> contents) { |
330 DCHECK(CalledOnValidThread()); | 330 DCHECK(CalledOnValidThread()); |
331 contents_ = contents.Pass(); | 331 contents_ = contents.Pass(); |
332 FOR_EACH_OBSERVER(Observer, observers_, OnSiteListUpdated()); | 332 FOR_EACH_OBSERVER(Observer, observers_, OnSiteListUpdated()); |
333 } | 333 } |
OLD | NEW |