#ifndef CHROME_BROWSER_UI_COCOA_ABOUT_IPC_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_ABOUT_IPC_CONTROLLER_H_
#import <Cocoa/Cocoa.h>
#include "base/memory/scoped_ptr.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_message_utils.h"
#include "third_party/google_toolbox_for_mac/src/Foundation/GTMRegex.h"
#import "chrome/browser/ui/cocoa/about_ipc_dialog.h"
#if defined(IPC_MESSAGE_LOG_ENABLED)
@interface CocoaLogData : NSObject {
@private
IPC::LogData data_;
}
- (id)initWithLogData:(const IPC::LogData&)data;
@end
@interface AboutIPCController : NSWindowController {
@private
scoped_ptr<AboutIPCBridge> bridge_;
IBOutlet NSButton* startStopButton_;
IBOutlet NSTableView* tableView_;
IBOutlet NSArrayController* dataController_;
IBOutlet NSTextField* eventCount_;
IBOutlet NSTextField* filteredEventCount_;
IBOutlet NSTextField* userStringTextField1_;
IBOutlet NSTextField* userStringTextField2_;
IBOutlet NSTextField* userStringTextField3_;
int filteredEventCounter_;
BOOL appCache_;
BOOL view_;
BOOL utilityHost_;
BOOL viewHost_;
BOOL plugin_;
BOOL npObject_;
BOOL devTools_;
BOOL pluginProcessing_;
BOOL userString1_;
BOOL userString2_;
BOOL userString3_;
}
+ (AboutIPCController*)sharedController;
- (IBAction)startStop:(id)sender;
- (IBAction)clear:(id)sender;
- (void)log:(CocoaLogData*)data;
- (void)updateVisibleRunState;
@end
@interface AboutIPCController(TestingAPI)
- (BOOL)filterOut:(CocoaLogData*)data;
- (void)setDisplayViewMessages:(BOOL)display;
@end
#endif
#endif