Add abhijeet.k@samsung.com to AUTHORS list.
[chromium-blink-merge.git] / ash / shell / content_client / shell_content_browser_client.h
blobdf62338d8e4cc013fc01d76b501d884e1e69154b
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
3 // found in the LICENSE file.
5 #ifndef ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "content/public/browser/content_browser_client.h"
13 namespace content {
14 class ShellBrowserContext;
15 class ShellBrowserMainParts;
16 class ShellResourceDispatcherHostDelegate;
19 namespace ash {
20 namespace shell {
22 class ShellBrowserMainParts;
24 class ShellContentBrowserClient : public content::ContentBrowserClient {
25 public:
26 ShellContentBrowserClient();
27 ~ShellContentBrowserClient() override;
29 // Overridden from content::ContentBrowserClient:
30 content::BrowserMainParts* CreateBrowserMainParts(
31 const content::MainFunctionParams& parameters) override;
32 net::URLRequestContextGetter* CreateRequestContext(
33 content::BrowserContext* browser_context,
34 content::ProtocolHandlerMap* protocol_handlers,
35 content::URLRequestInterceptorScopedVector request_interceptors) override;
36 #if defined(OS_POSIX) && !defined(OS_MACOSX)
37 void GetAdditionalMappedFilesForChildProcess(
38 const base::CommandLine& command_line,
39 int child_process_id,
40 content::FileDescriptorInfo* mappings) override;
41 #endif
43 content::ShellBrowserContext* browser_context();
45 private:
46 #if defined(OS_POSIX) && !defined(OS_MACOSX)
47 base::ScopedFD v8_natives_fd_;
48 base::ScopedFD v8_snapshot_fd_;
49 #endif
51 ShellBrowserMainParts* shell_browser_main_parts_;
53 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
56 } // namespace shell
57 } // namespace ash
59 #endif // ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_