Implements N:M forwarding of OmniboxEditModel events on iOS.
commit62fe105c137ec2d3752c306b03cda5a2d3f0cda2
authorsdefresne <sdefresne@chromium.org>
Tue, 21 Jul 2015 12:14:32 +0000 (21 05:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 12:15:01 +0000 (21 12:15 +0000)
treef6683b161ff7a8a11c9c3fb73dd725422b90c41e
parent57ec39ec14d7ebf9747d3855e2c13cfb76235e28
Implements N:M forwarding of OmniboxEditModel events on iOS.

RLZTrackerDelegate implementation on iOS need to listen to events from
any OmniboxEditModel (all other clients of the same events on iOS also
do not care about which OmniboxEditModel sends them).

Introduce OmniboxEditModelObserverRelay to allow N:M forwarding. This
class will be informed of events sent by all OmniboxEditModel and will
forward them to all interested observers.

BUG=511570,371536

Review URL: https://codereview.chromium.org/1245683002

Cr-Commit-Position: refs/heads/master@{#339640}
ios/chrome/browser/omnibox/omnibox_event_global_tracker.cc [new file with mode: 0644]
ios/chrome/browser/omnibox/omnibox_event_global_tracker.h [new file with mode: 0644]
ios/chrome/ios_chrome.gyp