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_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 int render_process_id, | 165 int render_process_id, |
166 int render_view_id, | 166 int render_view_id, |
167 bool worker); | 167 bool worker); |
168 | 168 |
169 // Cancels a displayed desktop notification. | 169 // Cancels a displayed desktop notification. |
170 virtual void CancelDesktopNotification( | 170 virtual void CancelDesktopNotification( |
171 int render_process_id, | 171 int render_process_id, |
172 int render_view_id, | 172 int render_view_id, |
173 int notification_id); | 173 int notification_id); |
174 | 174 |
| 175 // Checks if the given page has access to the background window permission. |
| 176 // This is called on the IO thread. |
| 177 virtual bool CheckBackgroundPermission( |
| 178 const GURL& source_url, const content::ResourceContext& context); |
| 179 |
| 180 // Returns a title string to use in the task manager for a process host with |
| 181 // the given URL, or the empty string to fall back to the default logic. |
| 182 // This is called on the IO thread. |
| 183 virtual std::string GetWorkerProcessTitle( |
| 184 const GURL& url, const content::ResourceContext& context); |
| 185 |
175 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 186 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
176 // Can return an optional fd for crash handling, otherwise returns -1. | 187 // Can return an optional fd for crash handling, otherwise returns -1. |
177 virtual int GetCrashSignalFD(const std::string& process_type); | 188 virtual int GetCrashSignalFD(const std::string& process_type); |
178 #endif | 189 #endif |
179 }; | 190 }; |
180 | 191 |
181 } // namespace content | 192 } // namespace content |
182 | 193 |
183 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 194 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |