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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const GURL& new_url) override; | 105 const GURL& new_url) override; |
106 bool ShouldSwapProcessesForRedirect( | 106 bool ShouldSwapProcessesForRedirect( |
107 content::ResourceContext* resource_context, | 107 content::ResourceContext* resource_context, |
108 const GURL& current_url, | 108 const GURL& current_url, |
109 const GURL& new_url) override; | 109 const GURL& new_url) override; |
110 bool ShouldAssignSiteForURL(const GURL& url) override; | 110 bool ShouldAssignSiteForURL(const GURL& url) override; |
111 std::string GetCanonicalEncodingNameByAliasName( | 111 std::string GetCanonicalEncodingNameByAliasName( |
112 const std::string& alias_name) override; | 112 const std::string& alias_name) override; |
113 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 113 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
114 int child_process_id) override; | 114 int child_process_id) override; |
115 void AppendMappedFileCommandLineSwitches( | |
116 base::CommandLine* command_line) override; | |
117 std::string GetApplicationLocale() override; | 115 std::string GetApplicationLocale() override; |
118 std::string GetAcceptLangs(content::BrowserContext* context) override; | 116 std::string GetAcceptLangs(content::BrowserContext* context) override; |
119 const gfx::ImageSkia* GetDefaultFavicon() override; | 117 const gfx::ImageSkia* GetDefaultFavicon() override; |
120 bool AllowAppCache(const GURL& manifest_url, | 118 bool AllowAppCache(const GURL& manifest_url, |
121 const GURL& first_party, | 119 const GURL& first_party, |
122 content::ResourceContext* context) override; | 120 content::ResourceContext* context) override; |
123 bool AllowServiceWorker(const GURL& scope, | 121 bool AllowServiceWorker(const GURL& scope, |
124 const GURL& first_party, | 122 const GURL& first_party, |
125 content::ResourceContext* context, | 123 content::ResourceContext* context, |
126 int render_process_id, | 124 int render_process_id, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 #if defined(ENABLE_PLUGINS) | 298 #if defined(ENABLE_PLUGINS) |
301 // Set of origins that can use TCP/UDP private APIs from NaCl. | 299 // Set of origins that can use TCP/UDP private APIs from NaCl. |
302 std::set<std::string> allowed_socket_origins_; | 300 std::set<std::string> allowed_socket_origins_; |
303 // Set of origins that can get a handle for FileIO from NaCl. | 301 // Set of origins that can get a handle for FileIO from NaCl. |
304 std::set<std::string> allowed_file_handle_origins_; | 302 std::set<std::string> allowed_file_handle_origins_; |
305 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable | 303 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable |
306 // versions of Chrome. | 304 // versions of Chrome. |
307 std::set<std::string> allowed_dev_channel_origins_; | 305 std::set<std::string> allowed_dev_channel_origins_; |
308 #endif | 306 #endif |
309 | 307 |
310 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
311 base::ScopedFD v8_natives_fd_; | |
312 base::ScopedFD v8_snapshot_fd_; | |
313 bool natives_fd_exists() { return v8_natives_fd_ != -1; } | |
314 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } | |
315 #endif // OS_POSIX && !OS_MACOSX | |
316 | |
317 // Vector of additional ChromeContentBrowserClientParts. | 308 // Vector of additional ChromeContentBrowserClientParts. |
318 // Parts are deleted in the reverse order they are added. | 309 // Parts are deleted in the reverse order they are added. |
319 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 310 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
320 | 311 |
321 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 312 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
322 | 313 |
323 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 314 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
324 }; | 315 }; |
325 | 316 |
326 } // namespace chrome | 317 } // namespace chrome |
327 | 318 |
328 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 319 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |