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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
18 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
| 19 #include "gin/v8_initializer.h" |
19 | 20 |
20 class ChromeContentBrowserClientParts; | 21 class ChromeContentBrowserClientParts; |
21 | 22 |
22 namespace base { | 23 namespace base { |
23 class CommandLine; | 24 class CommandLine; |
24 } | 25 } |
25 | 26 |
26 namespace content { | 27 namespace content { |
27 class QuotaPermissionContext; | 28 class QuotaPermissionContext; |
28 } | 29 } |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // Set of origins that can use TCP/UDP private APIs from NaCl. | 304 // Set of origins that can use TCP/UDP private APIs from NaCl. |
304 std::set<std::string> allowed_socket_origins_; | 305 std::set<std::string> allowed_socket_origins_; |
305 // Set of origins that can get a handle for FileIO from NaCl. | 306 // Set of origins that can get a handle for FileIO from NaCl. |
306 std::set<std::string> allowed_file_handle_origins_; | 307 std::set<std::string> allowed_file_handle_origins_; |
307 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable | 308 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable |
308 // versions of Chrome. | 309 // versions of Chrome. |
309 std::set<std::string> allowed_dev_channel_origins_; | 310 std::set<std::string> allowed_dev_channel_origins_; |
310 #endif | 311 #endif |
311 | 312 |
312 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 313 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
313 base::ScopedFD v8_natives_fd_; | 314 gin::V8Initializer::V8Files v8_files_; |
314 base::ScopedFD v8_snapshot_fd_; | |
315 bool natives_fd_exists() { return v8_natives_fd_ != -1; } | |
316 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } | |
317 #endif // OS_POSIX && !OS_MACOSX | 315 #endif // OS_POSIX && !OS_MACOSX |
318 #if defined(OS_ANDROID) | 316 #if defined(OS_ANDROID) |
319 base::ScopedFD icudtl_fd_; | 317 base::ScopedFD icudtl_fd_; |
320 base::MemoryMappedFile::Region icudtl_region_; | 318 base::MemoryMappedFile::Region icudtl_region_; |
321 #endif | 319 #endif |
322 | 320 |
323 // Vector of additional ChromeContentBrowserClientParts. | 321 // Vector of additional ChromeContentBrowserClientParts. |
324 // Parts are deleted in the reverse order they are added. | 322 // Parts are deleted in the reverse order they are added. |
325 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 323 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
326 | 324 |
327 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 325 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
328 | 326 |
329 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 327 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
330 }; | 328 }; |
331 | 329 |
332 } // namespace chrome | 330 } // namespace chrome |
333 | 331 |
334 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 332 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |