Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/renderer/chrome_guest_view_container_observer.h" | |
|
Fady Samuel
2015/06/01 11:32:25
Why do we need this class at all? ExtensiosnGuestV
lazyboy
2015/06/01 16:00:07
See comment in other file.
| |
| 6 | |
| 7 #include "ipc/ipc_message.h" | |
| 8 #include "ipc/ipc_message_macros.h" | |
| 9 | |
| 10 ChromeGuestViewContainerObserver::ChromeGuestViewContainerObserver() { | |
|
Fady Samuel
2015/06/01 11:32:25
This is more of a GuestViewContaineDispatcher.
lazyboy
2015/06/01 16:00:07
Done.
| |
| 11 } | |
| 12 | |
| 13 ChromeGuestViewContainerObserver::~ChromeGuestViewContainerObserver() { | |
| 14 } | |
| 15 | |
| 16 bool ChromeGuestViewContainerObserver::HandlesMessage( | |
| 17 const IPC::Message& message) { | |
| 18 if (IPC_MESSAGE_CLASS(message) == GuestViewMsgStart) | |
| 19 return true; | |
| 20 #if defined(ENABLE_EXTENSIONS) | |
| 21 return IPC_MESSAGE_CLASS(message) == ExtensionsGuestViewMsgStart; | |
| 22 #else | |
| 23 return false; | |
| 24 #endif | |
| 25 } | |
| OLD | NEW |