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

Side by Side Diff: content/public/browser/render_view_host_observer.h

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review, take 2 Created 8 years, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ipc/ipc_channel.h" 9 #include "ipc/ipc_channel.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 class GURL; 12 class GURL;
13
14 namespace content {
15
13 class RenderViewHost; 16 class RenderViewHost;
14 class RenderViewHostImpl; 17 class RenderViewHostImpl;
15 18
16 namespace content {
17
18 // An observer API implemented by classes which want to filter IPC messages from 19 // An observer API implemented by classes which want to filter IPC messages from
19 // RenderViewHost. 20 // RenderViewHost.
20 class CONTENT_EXPORT RenderViewHostObserver : public IPC::Channel::Listener, 21 class CONTENT_EXPORT RenderViewHostObserver : public IPC::Channel::Listener,
21 public IPC::Message::Sender { 22 public IPC::Message::Sender {
22 public: 23 public:
23 24
24 protected: 25 protected:
25 explicit RenderViewHostObserver(RenderViewHost* render_view_host); 26 explicit RenderViewHostObserver(RenderViewHost* render_view_host);
26 27
27 virtual ~RenderViewHostObserver(); 28 virtual ~RenderViewHostObserver();
(...skipping 14 matching lines...) Expand all
42 // IPC::Channel::Listener implementation. 43 // IPC::Channel::Listener implementation.
43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
44 45
45 // IPC::Message::Sender implementation. 46 // IPC::Message::Sender implementation.
46 virtual bool Send(IPC::Message* message) OVERRIDE; 47 virtual bool Send(IPC::Message* message) OVERRIDE;
47 48
48 RenderViewHost* render_view_host() const; 49 RenderViewHost* render_view_host() const;
49 int routing_id() { return routing_id_; } 50 int routing_id() { return routing_id_; }
50 51
51 private: 52 private:
52 friend class ::RenderViewHostImpl; 53 friend class content::RenderViewHostImpl;
jam 2012/03/05 23:59:28 content:: not needed anymore
Jói 2012/03/06 16:38:55 Done.
53 54
54 // Invoked from RenderViewHost. Invokes RenderViewHostDestroyed and NULL out 55 // Invoked from RenderViewHost. Invokes RenderViewHostDestroyed and NULL out
55 // |render_view_host_|. 56 // |render_view_host_|.
56 void RenderViewHostDestruction(); 57 void RenderViewHostDestruction();
57 58
58 RenderViewHostImpl* render_view_host_; 59 RenderViewHostImpl* render_view_host_;
59 60
60 // The routing ID of the associated RenderViewHost. 61 // The routing ID of the associated RenderViewHost.
61 int routing_id_; 62 int routing_id_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver); 64 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver);
64 }; 65 };
65 66
66 } // namespace content 67 } // namespace content
67 68
68 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 69 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698