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

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 26 matching lines...) Expand all
37 // 37 //
38 // This object communicates back and forth with the RenderProcess object 38 // This object communicates back and forth with the RenderProcess object
39 // running in the renderer process. Each RenderProcessHost and RenderProcess 39 // running in the renderer process. Each RenderProcessHost and RenderProcess
40 // keeps a list of RenderView (renderer) and TabContents (browser) which 40 // keeps a list of RenderView (renderer) and TabContents (browser) which
41 // are correlated with IDs. This way, the Views and the corresponding ViewHosts 41 // are correlated with IDs. This way, the Views and the corresponding ViewHosts
42 // communicate through the two process objects. 42 // communicate through the two process objects.
43 class BrowserRenderProcessHost : public RenderProcessHost, 43 class BrowserRenderProcessHost : public RenderProcessHost,
44 public ChildProcessLauncher::Client { 44 public ChildProcessLauncher::Client {
45 public: 45 public:
46 explicit BrowserRenderProcessHost(Profile* profile); 46 explicit BrowserRenderProcessHost(Profile* profile);
47 ~BrowserRenderProcessHost(); 47 virtual ~BrowserRenderProcessHost();
48 48
49 // RenderProcessHost implementation (public portion). 49 // RenderProcessHost implementation (public portion).
50 virtual bool Init(bool is_accessibility_enabled); 50 virtual bool Init(bool is_accessibility_enabled);
51 virtual int GetNextRoutingID(); 51 virtual int GetNextRoutingID();
52 virtual void CancelResourceRequests(int render_widget_id); 52 virtual void CancelResourceRequests(int render_widget_id);
53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); 53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
54 virtual bool WaitForUpdateMsg(int render_widget_id, 54 virtual bool WaitForUpdateMsg(int render_widget_id,
55 const base::TimeDelta& max_delay, 55 const base::TimeDelta& max_delay,
56 IPC::Message* msg); 56 IPC::Message* msg);
57 virtual void ReceivedBadMessage(); 57 virtual void ReceivedBadMessage();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Messages we queue while waiting for the process handle. We queue them here 141 // Messages we queue while waiting for the process handle. We queue them here
142 // instead of in the channel so that we ensure they're sent after init related 142 // instead of in the channel so that we ensure they're sent after init related
143 // messages that are sent once the process handle is available. This is 143 // messages that are sent once the process handle is available. This is
144 // because the queued messages may have dependencies on the init messages. 144 // because the queued messages may have dependencies on the init messages.
145 std::queue<IPC::Message*> queued_messages_; 145 std::queue<IPC::Message*> queued_messages_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 147 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
148 }; 148 };
149 149
150 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 150 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/blob_message_filter.h ('k') | content/browser/renderer_host/clipboard_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698