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 CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 32 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
33 int child_process_id) OVERRIDE; | 33 int child_process_id) OVERRIDE; |
34 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 34 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
35 const GURL& url, | 35 const GURL& url, |
36 webkit_glue::WebPreferences* prefs) OVERRIDE; | 36 webkit_glue::WebPreferences* prefs) OVERRIDE; |
37 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 37 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
38 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 38 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
39 virtual std::string GetDefaultDownloadName() OVERRIDE; | 39 virtual std::string GetDefaultDownloadName() OVERRIDE; |
40 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 40 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
41 WebContents* web_contents) OVERRIDE; | 41 WebContents* web_contents) OVERRIDE; |
| 42 virtual bool CanCreateWindow( |
| 43 const GURL& opener_url, |
| 44 const GURL& source_origin, |
| 45 WindowContainerType container_type, |
| 46 ResourceContext* context, |
| 47 int render_process_id, |
| 48 bool* no_javascript_access) OVERRIDE; |
42 | 49 |
43 #if defined(OS_ANDROID) | 50 #if defined(OS_ANDROID) |
44 virtual void GetAdditionalMappedFilesForChildProcess( | 51 virtual void GetAdditionalMappedFilesForChildProcess( |
45 const CommandLine& command_line, | 52 const CommandLine& command_line, |
46 int child_process_id, | 53 int child_process_id, |
47 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 54 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
48 #endif | 55 #endif |
49 | 56 |
50 ShellBrowserContext* browser_context(); | 57 ShellBrowserContext* browser_context(); |
51 ShellBrowserContext* off_the_record_browser_context(); | 58 ShellBrowserContext* off_the_record_browser_context(); |
52 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { | 59 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
53 return resource_dispatcher_host_delegate_.get(); | 60 return resource_dispatcher_host_delegate_.get(); |
54 } | 61 } |
55 ShellBrowserMainParts* shell_browser_main_parts() { | 62 ShellBrowserMainParts* shell_browser_main_parts() { |
56 return shell_browser_main_parts_; | 63 return shell_browser_main_parts_; |
57 } | 64 } |
58 | 65 |
59 private: | 66 private: |
60 scoped_ptr<ShellResourceDispatcherHostDelegate> | 67 scoped_ptr<ShellResourceDispatcherHostDelegate> |
61 resource_dispatcher_host_delegate_; | 68 resource_dispatcher_host_delegate_; |
62 | 69 |
63 FilePath webkit_source_dir_; | 70 FilePath webkit_source_dir_; |
64 | 71 |
65 ShellBrowserMainParts* shell_browser_main_parts_; | 72 ShellBrowserMainParts* shell_browser_main_parts_; |
66 }; | 73 }; |
67 | 74 |
68 } // namespace content | 75 } // namespace content |
69 | 76 |
70 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 77 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |