| 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 var SourceTracker = (function() { | 5 var SourceTracker = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * This class keeps track of all NetLog events, grouped into per-source | 9 * This class keeps track of all NetLog events, grouped into per-source |
| 10 * streams. It receives events from EventsTracker, and passes | 10 * streams. It receives events from EventsTracker, and passes |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 getPrivacyStripping: function() { | 149 getPrivacyStripping: function() { |
| 150 return this.privacyStripping_; | 150 return this.privacyStripping_; |
| 151 }, | 151 }, |
| 152 | 152 |
| 153 /** | 153 /** |
| 154 * Adds a listener of SourceEntries. |observer| will be called back when | 154 * Adds a listener of SourceEntries. |observer| will be called back when |
| 155 * SourceEntries are added or modified, source entries are deleted, or | 155 * SourceEntries are added or modified, source entries are deleted, or |
| 156 * privacy stripping changes: | 156 * privacy stripping changes: |
| 157 * | 157 * |
| 158 * observer.onSourceEntriesUpdated(sourceEntries) | 158 * observer.onSourceEntriesUpdated(sourceEntries) |
| 159 * ovserver.onAllSourceEntriesDeleted() | 159 * observer.onAllSourceEntriesDeleted() |
| 160 * observer.onPrivacyStrippingChanged() | 160 * observer.onPrivacyStrippingChanged() |
| 161 */ | 161 */ |
| 162 addSourceEntryObserver: function(observer) { | 162 addSourceEntryObserver: function(observer) { |
| 163 this.sourceEntryObservers_.push(observer); | 163 this.sourceEntryObservers_.push(observer); |
| 164 } | 164 } |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 return SourceTracker; | 167 return SourceTracker; |
| 168 })(); | 168 })(); |
| OLD | NEW |