| OLD | NEW |
| 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> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 private: | 94 private: |
| 95 friend class content::BrowserThread; | 95 friend class content::BrowserThread; |
| 96 friend class base::DeleteHelper<RenderMessageFilter>; | 96 friend class base::DeleteHelper<RenderMessageFilter>; |
| 97 | 97 |
| 98 class OpenChannelToNpapiPluginCallback; | 98 class OpenChannelToNpapiPluginCallback; |
| 99 | 99 |
| 100 virtual ~RenderMessageFilter(); | 100 virtual ~RenderMessageFilter(); |
| 101 | 101 |
| 102 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params, | 102 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params, |
| 103 int* route_id, | 103 int* route_id, |
| 104 int* surface_id, |
| 104 int64* cloned_session_storage_namespace_id); | 105 int64* cloned_session_storage_namespace_id); |
| 105 void OnMsgCreateWidget(int opener_id, | 106 void OnMsgCreateWidget(int opener_id, |
| 106 WebKit::WebPopupType popup_type, | 107 WebKit::WebPopupType popup_type, |
| 107 int* route_id); | 108 int* route_id, |
| 108 void OnMsgCreateFullscreenWidget(int opener_id, int* route_id); | 109 int* surface_id); |
| 110 void OnMsgCreateFullscreenWidget(int opener_id, |
| 111 int* route_id, |
| 112 int* surface_id); |
| 109 void OnSetCookie(const IPC::Message& message, | 113 void OnSetCookie(const IPC::Message& message, |
| 110 const GURL& url, | 114 const GURL& url, |
| 111 const GURL& first_party_for_cookies, | 115 const GURL& first_party_for_cookies, |
| 112 const std::string& cookie); | 116 const std::string& cookie); |
| 113 void OnGetCookies(const GURL& url, | 117 void OnGetCookies(const GURL& url, |
| 114 const GURL& first_party_for_cookies, | 118 const GURL& first_party_for_cookies, |
| 115 IPC::Message* reply_msg); | 119 IPC::Message* reply_msg); |
| 116 void OnGetRawCookies(const GURL& url, | 120 void OnGetRawCookies(const GURL& url, |
| 117 const GURL& first_party_for_cookies, | 121 const GURL& first_party_for_cookies, |
| 118 IPC::Message* reply_msg); | 122 IPC::Message* reply_msg); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 base::TimeTicks cpu_usage_sample_time_; | 262 base::TimeTicks cpu_usage_sample_time_; |
| 259 // Records the last sampled CPU usage in percents. | 263 // Records the last sampled CPU usage in percents. |
| 260 int cpu_usage_; | 264 int cpu_usage_; |
| 261 // Used for sampling CPU usage of the renderer process. | 265 // Used for sampling CPU usage of the renderer process. |
| 262 scoped_ptr<base::ProcessMetrics> process_metrics_; | 266 scoped_ptr<base::ProcessMetrics> process_metrics_; |
| 263 | 267 |
| 264 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 268 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
| 265 }; | 269 }; |
| 266 | 270 |
| 267 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 271 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |