| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/public/browser/content_browser_client.h" | 19 #include "content/public/browser/content_browser_client.h" |
| 20 #include "extensions/features/features.h" | 20 #include "extensions/features/features.h" |
| 21 #include "media/media_features.h" | 21 #include "media/media_features.h" |
| 22 #include "ppapi/features/features.h" |
| 22 | 23 |
| 23 class ChromeContentBrowserClientParts; | 24 class ChromeContentBrowserClientParts; |
| 24 | 25 |
| 25 namespace base { | 26 namespace base { |
| 26 class CommandLine; | 27 class CommandLine; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace content { | 30 namespace content { |
| 30 class BrowserContext; | 31 class BrowserContext; |
| 31 class QuotaPermissionContext; | 32 class QuotaPermissionContext; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 bool allow); | 345 bool allow); |
| 345 | 346 |
| 346 static void RequestFileSystemPermissionOnUIThread( | 347 static void RequestFileSystemPermissionOnUIThread( |
| 347 int render_process_id, | 348 int render_process_id, |
| 348 int render_frame_id, | 349 int render_frame_id, |
| 349 const GURL& url, | 350 const GURL& url, |
| 350 bool allowed_by_default, | 351 bool allowed_by_default, |
| 351 const base::Callback<void(bool)>& callback); | 352 const base::Callback<void(bool)>& callback); |
| 352 #endif | 353 #endif |
| 353 | 354 |
| 354 #if defined(ENABLE_PLUGINS) | 355 #if BUILDFLAG(ENABLE_PLUGINS) |
| 355 // Set of origins that can use TCP/UDP private APIs from NaCl. | 356 // Set of origins that can use TCP/UDP private APIs from NaCl. |
| 356 std::set<std::string> allowed_socket_origins_; | 357 std::set<std::string> allowed_socket_origins_; |
| 357 // Set of origins that can get a handle for FileIO from NaCl. | 358 // Set of origins that can get a handle for FileIO from NaCl. |
| 358 std::set<std::string> allowed_file_handle_origins_; | 359 std::set<std::string> allowed_file_handle_origins_; |
| 359 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable | 360 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable |
| 360 // versions of Chrome. | 361 // versions of Chrome. |
| 361 std::set<std::string> allowed_dev_channel_origins_; | 362 std::set<std::string> allowed_dev_channel_origins_; |
| 362 #endif | 363 #endif |
| 363 | 364 |
| 364 // Vector of additional ChromeContentBrowserClientParts. | 365 // Vector of additional ChromeContentBrowserClientParts. |
| 365 // Parts are deleted in the reverse order they are added. | 366 // Parts are deleted in the reverse order they are added. |
| 366 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 367 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 367 | 368 |
| 368 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 369 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 369 | 370 |
| 370 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 371 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 371 }; | 372 }; |
| 372 | 373 |
| 373 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 374 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |