OLD | NEW |
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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 #endif | 329 #endif |
330 | 330 |
331 // The prerender tracker used to determine whether a render process is used | 331 // The prerender tracker used to determine whether a render process is used |
332 // for prerendering and an override cookie store must be provided. | 332 // for prerendering and an override cookie store must be provided. |
333 // This needs to be kept as a member rather than just looked up from | 333 // This needs to be kept as a member rather than just looked up from |
334 // the profile due to initialization ordering, as well as due to threading. | 334 // the profile due to initialization ordering, as well as due to threading. |
335 // It is initialized on the UI thread when the ResoureDispatcherHost is | 335 // It is initialized on the UI thread when the ResoureDispatcherHost is |
336 // created. It is used only the IO thread. | 336 // created. It is used only the IO thread. |
337 prerender::PrerenderTracker* prerender_tracker_; | 337 prerender::PrerenderTracker* prerender_tracker_; |
338 | 338 |
| 339 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 340 base::ScopedFD v8_natives_fd_; |
| 341 base::ScopedFD v8_snapshot_fd_; |
| 342 #endif // OS_POSIX && !OS_MACOSX |
| 343 |
339 // Vector of additional ChromeContentBrowserClientParts. | 344 // Vector of additional ChromeContentBrowserClientParts. |
340 // Parts are deleted in the reverse order they are added. | 345 // Parts are deleted in the reverse order they are added. |
341 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 346 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
342 | 347 |
343 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 348 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
344 | 349 |
345 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 350 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
346 }; | 351 }; |
347 | 352 |
348 } // namespace chrome | 353 } // namespace chrome |
349 | 354 |
350 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 355 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |