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

Side by Side 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: remove debug code Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2012 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_VIEWER_VIEWER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_VIEWER_VIEWER_PROCESS_HOST_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h"
11
12 namespace IPC {
13 class Channel;
14 struct ChannelHandle;
jam 2012/09/27 21:18:40 nit: not needed
scottmg 2012/09/28 04:50:45 Done.
15 }
16
17 namespace viewer {
jam 2012/09/27 21:18:40 nit: just keep everything in the "chrome" namespac
scottmg 2012/09/28 04:50:45 Done.
18
19 class ViewerProcessHost : public IPC::Listener,
20 public IPC::Sender {
21 public:
22 ViewerProcessHost();
23 virtual ~ViewerProcessHost();
24
25 // IPC::Sender implementation.
26 virtual bool Send(IPC::Message* msg) OVERRIDE;
27
28 // IPC::Listener implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
31 virtual void OnChannelError() OVERRIDE;
32
33 private:
34 void OnSetTargetSurface(uint32 target_surface);
35
36 void CreateChannel();
37
38 scoped_ptr<IPC::Channel> channel_;
39 };
40
41 } // namespace viewer
42
43 #endif // CHROME_BROWSER_VIEWER_VIEWER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698