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

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

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 8 years, 11 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_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
11 #endif 11 #endif
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/message_loop_helpers.h"
18 #include "base/shared_memory.h" 19 #include "base/shared_memory.h"
19 #include "base/string16.h" 20 #include "base/string16.h"
20 #include "build/build_config.h" 21 #include "build/build_config.h"
21 #include "content/browser/in_process_webkit/webkit_context.h" 22 #include "content/browser/in_process_webkit/webkit_context.h"
22 #include "content/browser/renderer_host/resource_dispatcher_host.h" 23 #include "content/browser/renderer_host/resource_dispatcher_host.h"
23 #include "content/public/browser/browser_message_filter.h" 24 #include "content/public/browser/browser_message_filter.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
25 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
26 #include "ui/gfx/surface/transport_dib.h" 27 #include "ui/gfx/surface/transport_dib.h"
27 28
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return resource_dispatcher_host_; 89 return resource_dispatcher_host_;
89 } 90 }
90 91
91 // Returns the correct net::URLRequestContext depending on what type of url is 92 // Returns the correct net::URLRequestContext depending on what type of url is
92 // given. 93 // given.
93 // Only call on the IO thread. 94 // Only call on the IO thread.
94 net::URLRequestContext* GetRequestContextForURL(const GURL& url); 95 net::URLRequestContext* GetRequestContextForURL(const GURL& url);
95 96
96 private: 97 private:
97 friend class content::BrowserThread; 98 friend class content::BrowserThread;
98 friend class DeleteTask<RenderMessageFilter>; 99 friend class base::DeleteHelper<RenderMessageFilter>;
99 100
100 class OpenChannelToNpapiPluginCallback; 101 class OpenChannelToNpapiPluginCallback;
101 102
102 virtual ~RenderMessageFilter(); 103 virtual ~RenderMessageFilter();
103 104
104 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params, 105 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params,
105 int* route_id, 106 int* route_id,
106 int64* cloned_session_storage_namespace_id); 107 int64* cloned_session_storage_namespace_id);
107 void OnMsgCreateWidget(int opener_id, 108 void OnMsgCreateWidget(int opener_id,
108 WebKit::WebPopupType popup_type, 109 WebKit::WebPopupType popup_type,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 base::TimeTicks cpu_usage_sample_time_; 261 base::TimeTicks cpu_usage_sample_time_;
261 // Records the last sampled CPU usage in percents. 262 // Records the last sampled CPU usage in percents.
262 int cpu_usage_; 263 int cpu_usage_;
263 // Used for sampling CPU usage of the renderer process. 264 // Used for sampling CPU usage of the renderer process.
264 scoped_ptr<base::ProcessMetrics> process_metrics_; 265 scoped_ptr<base::ProcessMetrics> process_metrics_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 267 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
267 }; 268 };
268 269
269 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 270 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper_file_message_filter.h ('k') | content/browser/renderer_host/resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698