Chromium Code Reviews| Index: chrome/renderer/chrome_guest_view_container_observer.cc |
| diff --git a/chrome/renderer/chrome_guest_view_container_observer.cc b/chrome/renderer/chrome_guest_view_container_observer.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c70ad6b3ab3ddf828848d4a9bb7efa557906f747 |
| --- /dev/null |
| +++ b/chrome/renderer/chrome_guest_view_container_observer.cc |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#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.
|
| + |
| +#include "ipc/ipc_message.h" |
| +#include "ipc/ipc_message_macros.h" |
| + |
| +ChromeGuestViewContainerObserver::ChromeGuestViewContainerObserver() { |
|
Fady Samuel
2015/06/01 11:32:25
This is more of a GuestViewContaineDispatcher.
lazyboy
2015/06/01 16:00:07
Done.
|
| +} |
| + |
| +ChromeGuestViewContainerObserver::~ChromeGuestViewContainerObserver() { |
| +} |
| + |
| +bool ChromeGuestViewContainerObserver::HandlesMessage( |
| + const IPC::Message& message) { |
| + if (IPC_MESSAGE_CLASS(message) == GuestViewMsgStart) |
| + return true; |
| +#if defined(ENABLE_EXTENSIONS) |
| + return IPC_MESSAGE_CLASS(message) == ExtensionsGuestViewMsgStart; |
| +#else |
| + return false; |
| +#endif |
| +} |