| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class ShellBrowserContext; | 17 class ShellBrowserContext; |
| 18 class ShellBrowserMainParts; | 18 class ShellBrowserMainParts; |
| 19 class ShellResourceDispatcherHostDelegate; |
| 19 | 20 |
| 20 class ShellContentBrowserClient : public ContentBrowserClient { | 21 class ShellContentBrowserClient : public ContentBrowserClient { |
| 21 public: | 22 public: |
| 22 ShellContentBrowserClient(); | 23 ShellContentBrowserClient(); |
| 23 virtual ~ShellContentBrowserClient(); | 24 virtual ~ShellContentBrowserClient(); |
| 24 | 25 |
| 25 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { | 26 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { |
| 26 shell_browser_main_parts_ = parts; | 27 shell_browser_main_parts_ = parts; |
| 27 } | 28 } |
| 28 | 29 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 183 |
| 183 #if defined(USE_NSS) | 184 #if defined(USE_NSS) |
| 184 virtual | 185 virtual |
| 185 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 186 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 186 const GURL& url) OVERRIDE; | 187 const GURL& url) OVERRIDE; |
| 187 #endif | 188 #endif |
| 188 | 189 |
| 189 ShellBrowserContext* browser_context(); | 190 ShellBrowserContext* browser_context(); |
| 190 | 191 |
| 191 private: | 192 private: |
| 193 scoped_ptr<ShellResourceDispatcherHostDelegate> |
| 194 resource_dispatcher_host_delegate_; |
| 195 |
| 192 ShellBrowserMainParts* shell_browser_main_parts_; | 196 ShellBrowserMainParts* shell_browser_main_parts_; |
| 193 }; | 197 }; |
| 194 | 198 |
| 195 } // namespace content | 199 } // namespace content |
| 196 | 200 |
| 197 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 201 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |