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

Unified Diff: chrome/browser/viewer/viewer_process_host.h

Issue 10984007: in-chrome viewer for metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only do viewer mode when shift-F11 is pressed, for now 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
Index: chrome/browser/viewer/viewer_process_host.h
diff --git a/chrome/browser/viewer/viewer_process_host.h b/chrome/browser/viewer/viewer_process_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e559acca213baa13380b80084561f10956718e3
--- /dev/null
+++ b/chrome/browser/viewer/viewer_process_host.h
@@ -0,0 +1,37 @@
+// Copyright 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.
cpu_(ooo_6.6-7.5) 2012/09/28 21:37:37 there is already a viewer in chrome (the chromotin
scottmg 2012/09/28 22:14:28 Done.
+
+#ifndef CHROME_BROWSER_VIEWER_VIEWER_PROCESS_HOST_H_
+#define CHROME_BROWSER_VIEWER_VIEWER_PROCESS_HOST_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "base/threading/non_thread_safe.h"
+#include "ipc/ipc_listener.h"
+#include "ipc/ipc_sender.h"
+
+namespace IPC {
+class ChannelProxy;
+}
+
+class ViewerProcessHost : public IPC::Listener,
+ public IPC::Sender,
+ public base::NonThreadSafe {
+ public:
+ ViewerProcessHost();
+ virtual ~ViewerProcessHost();
+
+ // IPC::Sender implementation.
+ virtual bool Send(IPC::Message* msg) OVERRIDE;
+
+ // IPC::Listener implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ void OnSetTargetSurface(uint32 target_surface);
+
+ scoped_ptr<IPC::ChannelProxy> channel_;
+};
+
+#endif // CHROME_BROWSER_VIEWER_VIEWER_PROCESS_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698