| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_UI_COCOA_ABOUT_IPC_BRIDGE_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_ABOUT_IPC_BRIDGE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ipc/ipc_logging.h" | |
| 10 #include "ipc/ipc_message_utils.h" | |
| 11 | |
| 12 #if defined(IPC_MESSAGE_LOG_ENABLED) | |
| 13 | |
| 14 @class AboutIPCController; | |
| 15 | |
| 16 // On Windows, the AboutIPCDialog is a views::View. On Mac we have a | |
| 17 // Cocoa dialog. This class bridges from C++ to ObjC. | |
| 18 class AboutIPCBridge : public IPC::Logging::Consumer { | |
| 19 public: | |
| 20 AboutIPCBridge(AboutIPCController* controller) : controller_(controller) { } | |
| 21 virtual ~AboutIPCBridge() { } | |
| 22 | |
| 23 // IPC::Logging::Consumer implementation. | |
| 24 virtual void Log(const IPC::LogData& data); | |
| 25 | |
| 26 private: | |
| 27 AboutIPCController* controller_; // weak; owns me | |
| 28 DISALLOW_COPY_AND_ASSIGN(AboutIPCBridge); | |
| 29 }; | |
| 30 | |
| 31 #endif // IPC_MESSAGE_LOG_ENABLED | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_COCOA_ABOUT_IPC_BRIDGE_H_ | |
| OLD | NEW |