Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: ui/viewer/viewer_ipc_server.h

Issue 10984007: in-chrome viewer for metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename messages to have metro prefix Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/viewer/viewer_host_win.cc ('k') | ui/viewer/viewer_ipc_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/viewer/viewer_ipc_server.h
diff --git a/ui/viewer/viewer_ipc_server.h b/ui/viewer/viewer_ipc_server.h
deleted file mode 100644
index 8ab2bd048f487246d6b19c2babecb8bcecc639e6..0000000000000000000000000000000000000000
--- a/ui/viewer/viewer_ipc_server.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_VIEWER_VIEWER_IPC_SERVER_H_
-#define UI_VIEWER_VIEWER_IPC_SERVER_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "ipc/ipc_channel_handle.h"
-#include "ipc/ipc_listener.h"
-#include "ipc/ipc_sync_channel.h"
-#include "ipc/ipc_sync_message_filter.h"
-#include "ipc/ipc_sender.h"
-
-// This class handles IPC commands for the Viewer process.
-class ViewerIPCServer : public IPC::Listener, public IPC::Sender {
- public:
- explicit ViewerIPCServer(const IPC::ChannelHandle& handle);
- virtual ~ViewerIPCServer();
-
- bool Init();
-
- // IPC::Sender implementation.
- virtual bool Send(IPC::Message* msg) OVERRIDE;
-
- IPC::SyncChannel* channel() { return channel_.get(); }
-
- // Safe to call on any thread, as long as it's guaranteed that the thread's
- // lifetime is less than the main thread.
- IPC::SyncMessageFilter* sync_message_filter() { return sync_message_filter_; }
-
- private:
- // IPC::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
- virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
- virtual void OnChannelError() OVERRIDE;
-
- // IPC message handlers.
- void OnPbufferHandle(const std::string& todo);
-
- // Helper method to create the sync channel.
- void CreateChannel();
-
- bool client_connected_;
-
- IPC::ChannelHandle channel_handle_;
- scoped_ptr<IPC::SyncChannel> channel_;
-
- // Allows threads other than the main thread to send sync messages.
- scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewerIPCServer);
-};
-
-#endif // UI_VIEWER_VIEWER_IPC_SERVER_H_
« no previous file with comments | « ui/viewer/viewer_host_win.cc ('k') | ui/viewer/viewer_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698