Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// Copyright (c) 2009 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.


#import <Cocoa/Cocoa.h>

#include "base/scoped_ptr.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_message_utils.h"
#include "third_party/GTM/Foundation/GTMRegex.h"

// Must be included after IPC_MESSAGE_LOG_ENABLED gets defined
#import "chrome/browser/cocoa/about_ipc_bridge.h"


// An objc wrapper for IPC::LogData to allow use of Cocoa bindings.
@interface CocoaLogData : NSObject {
  IPC::LogData data_;
- (id)initWithLogData:(const IPC::LogData&)data;

// A window controller that handles the about:ipc non-modal dialog.
@interface AboutIPCController : NSWindowController {
  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_;
  // Count of filtered events.
  int filteredEventCounter_;
  // Cocoa-bound to check boxes for filtering messages.
  // Each BOOL allows events that have that name prefix.
  // E.g. if set, appCache_ allows events named AppCache*.
  // The actual string to match is defined in the xib.
  // The userStrings allow a user-specified prefix.
  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;

// Called from our C++ bridge class.  To accomodate multithreaded
// ownership issues, this method ACCEPTS OWNERSHIP of the arg passed
// in.
- (void)log:(CocoaLogData*)data;

// Update visible state (e.g. Start/Stop button) based on logging run
// state.  Does not change state.
- (void)updateVisibleRunState;


@interface AboutIPCController(TestingAPI)
- (BOOL)filterOut:(CocoaLogData*)data;
- (void)setDisplayViewMessages:(BOOL)display;


Generated by  Doxygen 1.6.0   Back to index