Chromium Code Reviews| 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 <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.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 "build/buildflag.h" | |
| 20 #include "chrome/common/features.h" | |
| 19 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
| 20 | 22 |
| 21 class ChromeContentBrowserClientParts; | 23 class ChromeContentBrowserClientParts; |
| 22 | 24 |
| 23 namespace base { | 25 namespace base { |
| 24 class CommandLine; | 26 class CommandLine; |
| 25 } | 27 } |
| 26 | 28 |
| 27 namespace content { | 29 namespace content { |
| 28 class BrowserContext; | 30 class BrowserContext; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 #endif // defined(OS_ANDROID) | 282 #endif // defined(OS_ANDROID) |
| 281 #if defined(OS_WIN) | 283 #if defined(OS_WIN) |
| 282 const wchar_t* GetResourceDllName() override; | 284 const wchar_t* GetResourceDllName() override; |
| 283 bool PreSpawnRenderer(sandbox::TargetPolicy* policy) override; | 285 bool PreSpawnRenderer(sandbox::TargetPolicy* policy) override; |
| 284 base::string16 GetAppContainerSidForSandboxType( | 286 base::string16 GetAppContainerSidForSandboxType( |
| 285 int sandbox_type) const override; | 287 int sandbox_type) const override; |
| 286 bool IsWin32kLockdownEnabledForMimeType( | 288 bool IsWin32kLockdownEnabledForMimeType( |
| 287 const std::string& mime_type) const override; | 289 const std::string& mime_type) const override; |
| 288 bool ShouldUseWindowsPrefetchArgument() const override; | 290 bool ShouldUseWindowsPrefetchArgument() const override; |
| 289 #endif | 291 #endif |
| 292 #if BUILDFLAG(ANDROID_JAVA_UI) | |
| 293 void RegisterRenderProcessAndroidMojoServices( | |
|
Ted C
2016/03/28 22:46:01
this is an odd api. We should really try to use o
| |
| 294 content::ServiceRegistryAndroid* registry) override; | |
| 295 #endif | |
| 290 void RegisterFrameMojoShellServices( | 296 void RegisterFrameMojoShellServices( |
| 291 content::ServiceRegistry* registry, | 297 content::ServiceRegistry* registry, |
| 292 content::RenderFrameHost* render_frame_host) override; | 298 content::RenderFrameHost* render_frame_host) override; |
| 293 void RegisterRenderFrameMojoServices( | 299 void RegisterRenderFrameMojoServices( |
| 294 content::ServiceRegistry* registry, | 300 content::ServiceRegistry* registry, |
| 295 content::RenderFrameHost* render_frame_host) override; | 301 content::RenderFrameHost* render_frame_host) override; |
| 296 void RegisterInProcessMojoApplications( | 302 void RegisterInProcessMojoApplications( |
| 297 StaticMojoApplicationMap* apps) override; | 303 StaticMojoApplicationMap* apps) override; |
| 298 void RegisterOutOfProcessMojoApplications( | 304 void RegisterOutOfProcessMojoApplications( |
| 299 OutOfProcessMojoApplicationMap* apps) override; | 305 OutOfProcessMojoApplicationMap* apps) override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 353 // Vector of additional ChromeContentBrowserClientParts. | 359 // Vector of additional ChromeContentBrowserClientParts. |
| 354 // Parts are deleted in the reverse order they are added. | 360 // Parts are deleted in the reverse order they are added. |
| 355 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 361 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 356 | 362 |
| 357 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 363 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 358 | 364 |
| 359 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 365 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 360 }; | 366 }; |
| 361 | 367 |
| 362 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 368 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |