| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/notifications/balloon_view_host.h" | 5 #include "chrome/browser/chromeos/notifications/balloon_view_host.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/common/extensions/extension_messages.h" | 9 #include "chrome/common/extensions/extension_messages.h" |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| 11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
| 12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 BalloonViewHost::BalloonViewHost(Balloon* balloon) | 16 BalloonViewHost::BalloonViewHost(Balloon* balloon) |
| 17 : ::BalloonViewHost(balloon) { | 17 : ::BalloonViewHost(balloon) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 MessageCallbackMap::const_iterator callback = | 48 MessageCallbackMap::const_iterator callback = |
| 49 message_callbacks_.find(name); | 49 message_callbacks_.find(name); |
| 50 if (callback == message_callbacks_.end()) | 50 if (callback == message_callbacks_.end()) |
| 51 return; | 51 return; |
| 52 | 52 |
| 53 // Run callback. | 53 // Run callback. |
| 54 callback->second->Run(&args); | 54 callback->second->Run(&args); |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace chromeos | 57 } // namespace chromeos |
| OLD | NEW |